コード例 #1
0
 protected override void OnClosing(CancelEventArgs e)
 {
     //Fires the OnClosing notification to the plugins
     foreach (var x in applicationLifeCycleInterceptors)
     {
         x.Value.OnClosing(e);
         if (e.Cancel)
         {
             return;
         }
     }
     base.OnClosing(e);
     sessionSettings.ActiveAssemblyList = assemblyList.ListName;
     sessionSettings.ActiveTreeViewPath = GetPathForNode(treeView.SelectedItem as SharpTreeNode);
     sessionSettings.WindowBounds       = this.RestoreBounds;
     sessionSettings.SplitterPosition   = leftColumn.Width.Value / (leftColumn.Width.Value + rightColumn.Width.Value);
     if (topPane.Visibility == Visibility.Visible)
     {
         sessionSettings.BottomPaneSplitterPosition = topPaneRow.Height.Value / (topPaneRow.Height.Value + textViewRow.Height.Value);
     }
     if (bottomPane.Visibility == Visibility.Visible)
     {
         sessionSettings.BottomPaneSplitterPosition = bottomPaneRow.Height.Value / (bottomPaneRow.Height.Value + textViewRow.Height.Value);
     }
     sessionSettings.Save();
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: dsrbecky/ILSpy
 protected override void OnClosing(CancelEventArgs e)
 {
     base.OnClosing(e);
     sessionSettings.ActiveAssemblyList = assemblyList.ListName;
     sessionSettings.ActiveTreeViewPath = GetPathForNode(treeView.SelectedItem as SharpTreeNode);
     sessionSettings.WindowBounds       = this.RestoreBounds;
     sessionSettings.SplitterPosition   = leftColumn.Width.Value / (leftColumn.Width.Value + rightColumn.Width.Value);
     if (showAnalyzer.IsChecked)
     {
         sessionSettings.AnalyzerSplitterPosition = analyzerRow.Height.Value / (analyzerRow.Height.Value + textViewRow.Height.Value);
     }
     sessionSettings.Save();
 }
コード例 #3
0
 protected override void OnClosing(CancelEventArgs e)
 {
     base.OnClosing(e);
     sessionSettings.ActiveAssemblyList = assemblyList.ListName;
     sessionSettings.ActiveTreeViewPath = GetPathForNode(treeView.SelectedItem as SharpTreeNode);
     sessionSettings.WindowBounds       = this.RestoreBounds;
     sessionSettings.SplitterPosition   = leftColumn.Width.Value / (leftColumn.Width.Value + rightColumn.Width.Value);
     if (topPane.Visibility == Visibility.Visible)
     {
         sessionSettings.BottomPaneSplitterPosition = topPaneRow.Height.Value / (topPaneRow.Height.Value + textViewRow.Height.Value);
     }
     if (bottomPane.Visibility == Visibility.Visible)
     {
         sessionSettings.BottomPaneSplitterPosition = bottomPaneRow.Height.Value / (bottomPaneRow.Height.Value + textViewRow.Height.Value);
     }
     sessionSettings.Save();
 }
コード例 #4
0
        protected override bool HandleClosing()
        {
            sessionSettings.ActiveAssemblyList       = assemblyList.ListName;
            sessionSettings.ActiveTreeViewPath       = GetPathForNode(treeView.SelectedItem as SharpTreeNode);
            sessionSettings.ActiveAutoLoadedAssembly = GetAutoLoadedAssemblyNode(treeView.SelectedItem as SharpTreeNode);
            sessionSettings.WindowBounds             = this.Bounds;
            sessionSettings.SplitterPosition         = leftColumn.Width.Value / (leftColumn.Width.Value + rightColumn.Width.Value);
            if (topPane.IsVisible == true)
            {
                sessionSettings.TopPaneSplitterPosition = topPaneRow.Height.Value / (topPaneRow.Height.Value + textViewRow.Height.Value);
            }
            if (bottomPane.IsVisible == true)
            {
                sessionSettings.BottomPaneSplitterPosition = bottomPaneRow.Height.Value / (bottomPaneRow.Height.Value + textViewRow.Height.Value);
            }
            sessionSettings.Save();

            return(base.HandleClosing());
        }