Exemplo n.º 1
0
 private void EhWorkbenchPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == nameof(AltaxoWorkbench.IsLayoutSerializationRequired))
     {
         DockingLayoutStringObserver.SerializeLayoutAndUpdateLayoutString(_dockManager);
     }
 }
Exemplo n.º 2
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);
     }
 }