diff --git a/XLAB.DATA/XLAB.DATA.csproj b/XLAB.DATA/XLAB.DATA.csproj index bea281e..5026a53 100644 --- a/XLAB.DATA/XLAB.DATA.csproj +++ b/XLAB.DATA/XLAB.DATA.csproj @@ -1,5 +1,5 @@ - + Debug @@ -12,7 +12,6 @@ 512 {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 4 - true true @@ -32,6 +31,14 @@ 4 + + ..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.dll + True + + + ..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.SqlServer.dll + True + @@ -148,4 +155,4 @@ - \ No newline at end of file + diff --git a/XLAB.DATA/packages.config b/XLAB.DATA/packages.config index 8408f24..1be0099 100644 --- a/XLAB.DATA/packages.config +++ b/XLAB.DATA/packages.config @@ -1,4 +1,5 @@  + - \ No newline at end of file + diff --git a/XLAB.sln b/XLAB.sln new file mode 100644 index 0000000..50ba80c --- /dev/null +++ b/XLAB.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XLAB.DATA", "XLAB.DATA\XLAB.DATA.csproj", "{AE0E35D7-DFA4-4150-9889-255043B232BB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XLAB", "XLAB\XLAB.csproj", "{B8DAAB84-777A-4274-8452-E602DB1AF587}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AE0E35D7-DFA4-4150-9889-255043B232BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AE0E35D7-DFA4-4150-9889-255043B232BB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AE0E35D7-DFA4-4150-9889-255043B232BB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AE0E35D7-DFA4-4150-9889-255043B232BB}.Release|Any CPU.Build.0 = Release|Any CPU + {B8DAAB84-777A-4274-8452-E602DB1AF587}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B8DAAB84-777A-4274-8452-E602DB1AF587}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B8DAAB84-777A-4274-8452-E602DB1AF587}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B8DAAB84-777A-4274-8452-E602DB1AF587}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/XLAB/App.config b/XLAB/App.config index 193aecc..653a0be 100644 --- a/XLAB/App.config +++ b/XLAB/App.config @@ -1,6 +1,14 @@ - + - - - - \ No newline at end of file + + + + + + + + diff --git a/XLAB/App.xaml.cs b/XLAB/App.xaml.cs index 7effee5..44428d3 100644 --- a/XLAB/App.xaml.cs +++ b/XLAB/App.xaml.cs @@ -1,10 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; +using System.Globalization; +using System.Threading; using System.Windows; +using System.Windows.Markup; namespace XLAB { @@ -13,5 +10,23 @@ namespace XLAB /// public partial class App : Application { + public App() + { + ApplyRussianCulture(); + } + + private static void ApplyRussianCulture() + { + var culture = new CultureInfo("ru-RU"); + + CultureInfo.DefaultThreadCurrentCulture = culture; + CultureInfo.DefaultThreadCurrentUICulture = culture; + Thread.CurrentThread.CurrentCulture = culture; + Thread.CurrentThread.CurrentUICulture = culture; + + FrameworkElement.LanguageProperty.OverrideMetadata( + typeof(FrameworkElement), + new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(culture.IetfLanguageTag))); + } } } diff --git a/XLAB/CreateDocumentWindow.xaml b/XLAB/CreateDocumentWindow.xaml new file mode 100644 index 0000000..9f83c7a --- /dev/null +++ b/XLAB/CreateDocumentWindow.xaml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + +