private void closingAppSequence()
 {
     if (CurrentAppSettings.RememberUser)
     {
         CurrentAppSettings.SaveToFile();
     }
     else
     {
         CurrentAppSettings = AppSettings.GetDefaultSettings();
         CurrentAppSettings.SaveToFile();
         getAndAdaptLoginResultAndThenPopulateCache(null);
     }
 }
Пример #2
0
 protected override void OnFormClosing(FormClosingEventArgs e)
 {
     base.OnFormClosing(e);
     CurrentAppSettings.SaveToFile();
 }