diff --git a/App.xaml.cs b/App.xaml.cs index b14ffbd..bc6b951 100644 --- a/App.xaml.cs +++ b/App.xaml.cs @@ -47,12 +47,14 @@ namespace SunlightCentralizedControlManagement_SCCM_ return Assembly.Load(assemblyRawBytes); } } + private UserClass.IniFile.IniFiles Configini = new UserClass.IniFile.IniFiles(Convert.ToString(System.AppDomain.CurrentDomain.BaseDirectory) + "SCCM.ini"); + public App() { this.Startup += new StartupEventHandler(App_Startup); this.DispatcherUnhandledException += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(App_DispatcherUnhandledException); - // SunlightCentralizedControlManagement_SCCM_.Properties.Resources.Culture = new System.Globalization.CultureInfo(Configini.IniReadvalue("SYS", "Language"));//设定语言 + SunlightCentralizedControlManagement_SCCM_.Properties.Resources.Culture = new System.Globalization.CultureInfo(Configini.IniReadvalue("SYS", "Language"));//设定语言 } System.Threading.Mutex mutex; diff --git a/MainWindow.xaml b/MainWindow.xaml index 5c308df..47a1b65 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -45,11 +45,11 @@