Ejemplo n.º 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
     {
     }
 }
Ejemplo n.º 2
0
 public void Save()
 {
     _settings.Culture = (Globalize.Localize.Language)CultureEnumSelected;
     _settings.Save();
     _localize.SetLanguage();
 }