Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NewDocument);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 11 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OpenDocument);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 14 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SaveDocument_CanExecute);
     
     #line default
     #line hidden
     
     #line 15 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveDocument);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 18 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveDocumentAs);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 21 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ApplicationClose);
     
     #line default
     #line hidden
     return;
     case 6:
     this.menu = ((TextEditor.TextEditorMenu)(target));
     return;
     case 7:
     this.toolbar = ((TextEditor.TextEditorToolbar)(target));
     
     #line 28 "..\..\..\MainWindow.xaml"
     this.toolbar.AddHandler(System.Windows.Controls.Primitives.Selector.SelectionChangedEvent, new System.Windows.Controls.SelectionChangedEventHandler(this.TextEditorToolbar_SelectionChanged));
     
     #line default
     #line hidden
     return;
     case 8:
     this.status = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.body = ((System.Windows.Controls.RichTextBox)(target));
     
     #line 34 "..\..\..\MainWindow.xaml"
     this.body.SelectionChanged += new System.Windows.RoutedEventHandler(this.body_SelectionChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

            case 8:
                this.menu = ((TextEditor.TextEditorMenu)(target));
                return;

            case 9:
                this.toolbar = ((TextEditor.TextEditorToolbar)(target));

            #line 37 "..\..\..\MainWindow.xaml"
                this.toolbar.AddHandler(System.Windows.Controls.Primitives.Selector.SelectionChangedEvent, new System.Windows.Controls.SelectionChangedEventHandler(this.TextEditorToolbar_SelectionChanged));

            #line default
            #line hidden
                return;

            case 10:
                this.status = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.body = ((System.Windows.Controls.RichTextBox)(target));

            #line 42 "..\..\..\MainWindow.xaml"
                this.body.SelectionChanged += new System.Windows.RoutedEventHandler(this.Body_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }