Exemple #1
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     this.ShutdownMode = ShutdownMode.OnExplicitShutdown;
     if (Bootstrap.Instance.InitApplication())
     {
         _settings = (ISettings)Bootstrap.Instance.Services.GetService(typeof(ISettings));
         _localize = (Globalize.ILocalize)Bootstrap.Instance.Services.GetService(typeof(Globalize.ILocalize));
         _settings.Load();
         _localize.SetLanguage();
         MainWindow frmMain = new MainWindow();
         frmMain.Show();
         this.ShutdownMode = ShutdownMode.OnLastWindowClose;
     }
     else
     {
     }
 }
 public void Save()
 {
     _settings.Culture = (Globalize.Localize.Language)CultureEnumSelected;
     _settings.Save();
     _localize.SetLanguage();
 }