Ejemplo n.º 1
0
 public void ReloadSettings()
 {
     if (_settingsStorage != null)
     {
         _settingsStorage.Dispose();
         _settingsStorage = null;
     }
     _settingsStorage = new SqliteSettingsStorage();
     _settings        = _settingsStorage.LoadSettings();
 }
Ejemplo n.º 2
0
 public void ReloadSettings()
 {
     if (_settingsStorage != null)
     {
         _settingsStorage.Dispose();
         _settingsStorage = null;
     }
     _settingsStorage = new SqliteSettingsStorage();
     _settings        = _settingsStorage.LoadSettings();
     SettingsFolder   = (_settingsStorage as SqliteSettingsStorage).RootSettingsFolder;
 }
Ejemplo n.º 3
0
 public Settings()
 {
     #if DEBUG
     if (_uniqueInstance != null)
     {
         //you used the wrong binding
         //use:
         //<properties:Settings x:Key="Settings" />
         //{Binding ArchivedRowColor, Source={x:Static p:Settings.Default}}
         System.Diagnostics.Debugger.Break();
     }
     #endif
     SqliteSettingsStorage.ApplicationRunning = Settings.ApplicationRunning;
     _settingsStorage = new SqliteSettingsStorage();
     _settings = _settingsStorage.LoadSettings();
 }
Ejemplo n.º 4
0
 public void ReloadSettings()
 {
     if (_settingsStorage != null)
     {
         _settingsStorage.Dispose();
         _settingsStorage = null;
     }
     _settingsStorage = new SqliteSettingsStorage();
     _settings = _settingsStorage.LoadSettings();
 }
Ejemplo n.º 5
0
 public void ReloadSettings()
 {
     if (_settingsStorage != null)
     {
         _settingsStorage.Dispose();
         _settingsStorage = null;
     }
     _settingsStorage = new SqliteSettingsStorage();
     _settings = _settingsStorage.LoadSettings();
     SettingsFolder = (_settingsStorage as SqliteSettingsStorage).RootSettingsFolder;
 }