Example #1
0
 protected override void OnClosing(CancelEventArgs e)
 {
     base.OnClosing(e);
     if (!e.Cancel)
     {
         DockingLayoutStringObserver.SerializeLayoutAndUpdateLayoutString(_dockManager);
         WorkbenchStateObserver.UpdateWorkbenchStateFromMainWindow(this);
         var shutdownService = Current.GetService <IShutdownService>() ?? new ShutdownService();
         shutdownService.OnClosing(e);
     }
 }
Example #2
0
 protected override void OnStateChanged(EventArgs e)
 {
     WorkbenchStateObserver.UpdateWorkbenchStateFromMainWindow(this);
     base.OnStateChanged(e);
 }