private void closingAppSequence() { if (CurrentAppSettings.RememberUser) { CurrentAppSettings.SaveToFile(); } else { CurrentAppSettings = AppSettings.GetDefaultSettings(); CurrentAppSettings.SaveToFile(); getAndAdaptLoginResultAndThenPopulateCache(null); } }
protected override void OnFormClosing(FormClosingEventArgs e) { base.OnFormClosing(e); CurrentAppSettings.SaveToFile(); }