Exemple #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 23 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OpenCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 26 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RefreshCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 29 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 32 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.BackCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 33 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.BackCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 36 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.ForwardCommandCanExecute);
     
     #line default
     #line hidden
     
     #line 37 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ForwardCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 40 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SearchCommandExecuted);
     
     #line default
     #line hidden
     return;
     case 7:
     this.mainMenu = ((System.Windows.Controls.Menu)(target));
     return;
     case 8:
     this.toolBar = ((System.Windows.Controls.ToolBar)(target));
     return;
     case 9:
     this.languageComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 10:
     this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 11:
     this.StatusLabel = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.leftColumn = ((System.Windows.Controls.ColumnDefinition)(target));
     return;
     case 13:
     this.rightColumn = ((System.Windows.Controls.ColumnDefinition)(target));
     return;
     case 14:
     this.treeView = ((ICSharpCode.TreeView.SharpTreeView)(target));
     
     #line 113 "..\..\..\MainWindow.xaml"
     this.treeView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TreeView_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 15:
     this.topPaneRow = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 16:
     this.textViewRow = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 17:
     this.bottomPaneRow = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 18:
     this.updateAvailablePanel = ((System.Windows.Controls.Border)(target));
     return;
     case 19:
     
     #line 142 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.updateAvailablePanelCloseButtonClick);
     
     #line default
     #line hidden
     return;
     case 20:
     
     #line 145 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.downloadUpdateButtonClick);
     
     #line default
     #line hidden
     return;
     case 21:
     this.topPane = ((ICSharpCode.ILSpy.Controls.DockedPane)(target));
     return;
     case 22:
     this.mainPane = ((System.Windows.Controls.ContentPresenter)(target));
     return;
     case 23:
     this.bottomPane = ((ICSharpCode.ILSpy.Controls.DockedPane)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #2
0
 IPane GetPane(DockedPane dockedPane, string name)
 {
     if (string.IsNullOrEmpty(name))
         return null;
     foreach (var creator in paneCreators) {
         var pane = creator.Create(name);
         if (pane != null)
             return pane;
     }
     return null;
 }
Exemple #3
0
 private void ShowPane(DockedPane pane, DoubleAnimation fadeInAnimation, string title, object content, double rowHeight, RowDefinition rowDefinition)
 {
     rowDefinition.MinHeight = 100;
     if (rowHeight > 0 && rowHeight < 1)
     {
         textViewRow.Height = new GridLength(1 - rowHeight, GridUnitType.Star);
         rowDefinition.Height = new GridLength(rowHeight, GridUnitType.Star);
     }
     pane.Title = title;
     pane.Content = content;
     pane.Opacity = 0;
     pane.Visibility = Visibility.Visible;
     pane.BeginAnimation(OpacityProperty, fadeInAnimation);
 }
Exemple #4
0
 static string GetPaneName(DockedPane dockedPane)
 {
     var pane = dockedPane.Content as IPane;
     return pane == null ? string.Empty : pane.PaneName;
 }
Exemple #5
0
        static SessionSettings.PaneSettings GetPaneSettings(DockedPane dockedPane, RowDefinition row)
        {
            var settings = new SessionSettings.PaneSettings();

            if (dockedPane.Visibility == Visibility.Visible)
                settings.Height = row.Height.Value;
            else
                settings.Height = dockedPane.Height;
            if (double.IsNaN(settings.Height))
                settings.Height = 250;

            settings.Name = GetPaneName(dockedPane);

            return settings;
        }
Exemple #6
0
		bool IsPaneVisible(DockedPane pane, IPane content) {
			return pane.IsVisible && IsPaneContent(pane, content);
		}
Exemple #7
0
		bool IsPaneContent(DockedPane pane, IPane content) {
			return pane.Content == content;
		}
Exemple #8
0
		static void ClosePane(DockedPane dockedPane, RowDefinition paneRow, ref SessionSettings.PaneSettings paneSettings) {
			paneSettings.Height = paneRow.Height.Value;
			paneRow.MinHeight = 0;
			paneRow.Height = new GridLength(0);
			dockedPane.Visibility = Visibility.Collapsed;

			var pane = dockedPane.Content;
			dockedPane.Content = null;
			if (pane != null)
				pane.Closed();
		}
Exemple #9
0
		static void ShowPane(DockedPane dockedPane, IPane content, RowDefinition paneRow, SessionSettings.PaneSettings paneSettings) {
			paneRow.MinHeight = 100;
			if (paneSettings.Height > 0 && (paneRow.Height == null || paneRow.Height.Value == 0))
				paneRow.Height = new GridLength(paneSettings.Height, GridUnitType.Pixel);
			dockedPane.Title = content.PaneTitle;
			if (dockedPane.Content != content) {
				var pane = dockedPane.Content;
				if (pane != null)
					pane.Closed();
				dockedPane.Content = content;
			}
			dockedPane.Visibility = Visibility.Visible;
			content.Opened();
		}
Exemple #10
0
		bool IsPaneContent(DockedPane pane, object content)
		{
			return pane.Content == content;
		}