Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((TraceLab.UI.WPF.Views.MainWindow)(target));
                return;

            case 2:

            #line 88 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteOpenComponentGraphCommand);

            #line default
            #line hidden

            #line 88 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteOpenComponentGraphCommand);

            #line default
            #line hidden
                return;

            case 3:

            #line 91 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteToggleNodeInfo);

            #line default
            #line hidden
                return;

            case 4:

            #line 94 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ShowDefineCompositeComponentWizard);

            #line default
            #line hidden

            #line 94 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanShowDefineCompositeComponentWizard);

            #line default
            #line hidden
                return;

            case 5:

            #line 97 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CaptureScreenShot);

            #line default
            #line hidden

            #line 97 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanCaptureScreenShot);

            #line default
            #line hidden
                return;

            case 6:
                this.ModalHost = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:

            #line 136 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TBButton_Click);

            #line default
            #line hidden

            #line 136 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.TBButton_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 8:

            #line 189 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenPkgBuilder_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 196 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TBButton_Click);

            #line default
            #line hidden

            #line 196 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.TBButton_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 12:

            #line 220 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.AboutTraceLabMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 13:
                this.Progress = ((TraceLab.UI.WPF.Controls.ProgressControl)(target));
                return;

            case 14:
                this.DockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 15:
                this.Workspace = ((TraceLab.UI.WPF.Views.WorkspaceWindow)(target));
                return;

            case 16:
                this.Components = ((TraceLab.UI.WPF.Views.ComponentsLibraryWindow)(target));
                return;

            case 17:
                this.Output = ((TraceLab.UI.WPF.Views.OutputWindow)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainWindow = ((TraceLab.UI.WPF.Views.MainWindow)(target));
     return;
     case 2:
     
     #line 88 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteOpenComponentGraphCommand);
     
     #line default
     #line hidden
     
     #line 88 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteOpenComponentGraphCommand);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 91 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteToggleNodeInfo);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 94 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ShowDefineCompositeComponentWizard);
     
     #line default
     #line hidden
     
     #line 94 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanShowDefineCompositeComponentWizard);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 97 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CaptureScreenShot);
     
     #line default
     #line hidden
     
     #line 97 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanCaptureScreenShot);
     
     #line default
     #line hidden
     return;
     case 6:
     this.ModalHost = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     
     #line 136 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TBButton_Click);
     
     #line default
     #line hidden
     
     #line 136 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.TBButton_ContextMenuOpening);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 189 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenPkgBuilder_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 196 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TBButton_Click);
     
     #line default
     #line hidden
     
     #line 196 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.TBButton_ContextMenuOpening);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 220 "..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.AboutTraceLabMouseLeftButtonUp);
     
     #line default
     #line hidden
     return;
     case 13:
     this.Progress = ((TraceLab.UI.WPF.Controls.ProgressControl)(target));
     return;
     case 14:
     this.DockManager = ((AvalonDock.DockingManager)(target));
     return;
     case 15:
     this.Workspace = ((TraceLab.UI.WPF.Views.WorkspaceWindow)(target));
     return;
     case 16:
     this.Components = ((TraceLab.UI.WPF.Views.ComponentsLibraryWindow)(target));
     return;
     case 17:
     this.Output = ((TraceLab.UI.WPF.Views.OutputWindow)(target));
     return;
     }
     this._contentLoaded = true;
 }