Ejemplo n.º 1
0
 public override void TryClose(bool?dialogResult = null)
 {
     //Properties.Settings.Default.Save();
     base.TryClose(dialogResult);
     if (dialogResult != false)
     {
         Ribbon.OnClose();
         notifyIcon?.Dispose();
         AutoSaveTimer.Enabled = false;
         AutoSaver.RemoveAll();
     }
 }
Ejemplo n.º 2
0
 public override void TryClose(bool?dialogResult = null)
 {
     //Properties.Settings.Default.Save();
     base.TryClose(dialogResult);
     if (dialogResult != false)
     {
         Ribbon.OnClose();
         notifyIcon?.Dispose();
         AutoSaveTimer.Enabled = false;
         if (!Application.Current.Properties.Contains("HasCrashed"))
         {
             AutoSaver.RemoveAll();
         }
     }
 }