void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainWindow = ((N***a.MainWindow)(target)); return; case 2: #line 7 "..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.loadMenuItem_Click); #line default #line hidden return; case 3: #line 8 "..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.saveMenuItem_Click); #line default #line hidden return; case 4: this.fileMenu = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.newMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 22 "..\..\MainWindow.xaml" this.newMenuItem.Click += new System.Windows.RoutedEventHandler(this.newMenuItem_Click); #line default #line hidden return; case 6: this.saveMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 23 "..\..\MainWindow.xaml" this.saveMenuItem.Click += new System.Windows.RoutedEventHandler(this.saveMenuItem_Click); #line default #line hidden return; case 7: this.loadMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 24 "..\..\MainWindow.xaml" this.loadMenuItem.Click += new System.Windows.RoutedEventHandler(this.loadMenuItem_Click); #line default #line hidden return; case 8: this.exitMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 25 "..\..\MainWindow.xaml" this.exitMenuItem.Click += new System.Windows.RoutedEventHandler(this.exitMenuItem_Click); #line default #line hidden return; case 9: this.editMenu = ((System.Windows.Controls.MenuItem)(target)); return; case 10: this.undoMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 28 "..\..\MainWindow.xaml" this.undoMenuItem.Click += new System.Windows.RoutedEventHandler(this.undoMenuItem_Click); #line default #line hidden return; case 11: this.pasteMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 30 "..\..\MainWindow.xaml" this.pasteMenuItem.Click += new System.Windows.RoutedEventHandler(this.pasteMenuItem_Click); #line default #line hidden return; case 12: this.copyMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 31 "..\..\MainWindow.xaml" this.copyMenuItem.Click += new System.Windows.RoutedEventHandler(this.copyMenuItem_Click); #line default #line hidden return; case 13: this.cutMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 32 "..\..\MainWindow.xaml" this.cutMenuItem.Click += new System.Windows.RoutedEventHandler(this.cutMenuItem_Click); #line default #line hidden return; case 14: this.SelectAllTextMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 33 "..\..\MainWindow.xaml" this.SelectAllTextMenuItem.Click += new System.Windows.RoutedEventHandler(this.SelectAllTextMenuIte_Click); #line default #line hidden return; case 15: this.ReplaceMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 35 "..\..\MainWindow.xaml" this.ReplaceMenuItem.Click += new System.Windows.RoutedEventHandler(this.replaceMenuItem_Click); #line default #line hidden return; case 16: this.helpMenu = ((System.Windows.Controls.MenuItem)(target)); return; case 17: this.aboutMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 39 "..\..\MainWindow.xaml" this.aboutMenuItem.Click += new System.Windows.RoutedEventHandler(this.aboutMenuItem_Click); #line default #line hidden return; case 18: this.btnBold = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 19: this.btnItalic = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 20: this.btnUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 21: this.cmbFontFamily = ((System.Windows.Controls.ComboBox)(target)); #line 61 "..\..\MainWindow.xaml" this.cmbFontFamily.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbFontFamily_SelectionChanged); #line default #line hidden return; case 22: this.cmbFontSize = ((System.Windows.Controls.ComboBox)(target)); #line 62 "..\..\MainWindow.xaml" this.cmbFontSize.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent, new System.Windows.Controls.TextChangedEventHandler(this.cmbFontSize_TextChanged)); #line default #line hidden return; case 23: this.editSpace = ((System.Windows.Controls.RichTextBox)(target)); #line 67 "..\..\MainWindow.xaml" this.editSpace.SelectionChanged += new System.Windows.RoutedEventHandler(this.editSpace_SelectionChanged); #line default #line hidden #line 67 "..\..\MainWindow.xaml" this.editSpace.GotFocus += new System.Windows.RoutedEventHandler(this.editSpace_GotFocus); #line default #line hidden return; case 24: this.Scrooll = ((System.Windows.Controls.Primitives.ScrollBar)(target)); #line 78 "..\..\MainWindow.xaml" this.Scrooll.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this.ScrollEvent); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainWindow = ((N***a.MainWindow)(target)); return; case 2: #line 7 "..\..\..\Windows\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.loadMenuItem_Click); #line default #line hidden return; case 3: #line 8 "..\..\..\Windows\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.saveMenuItem_Click); #line default #line hidden return; case 4: #line 10 "..\..\..\Windows\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SelectAllCanExecute); #line default #line hidden #line 11 "..\..\..\Windows\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SelectAllExecute); #line default #line hidden return; case 5: this.mainGrid = ((System.Windows.Controls.Grid)(target)); return; case 6: this.fileMenu = ((System.Windows.Controls.MenuItem)(target)); return; case 7: this.newMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 31 "..\..\..\Windows\MainWindow.xaml" this.newMenuItem.Click += new System.Windows.RoutedEventHandler(this.newMenuItem_Click); #line default #line hidden return; case 8: this.saveMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 32 "..\..\..\Windows\MainWindow.xaml" this.saveMenuItem.Click += new System.Windows.RoutedEventHandler(this.saveMenuItem_Click); #line default #line hidden return; case 9: this.loadMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 33 "..\..\..\Windows\MainWindow.xaml" this.loadMenuItem.Click += new System.Windows.RoutedEventHandler(this.loadMenuItem_Click); #line default #line hidden return; case 10: this.exitMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 34 "..\..\..\Windows\MainWindow.xaml" this.exitMenuItem.Click += new System.Windows.RoutedEventHandler(this.exitMenuItem_Click); #line default #line hidden return; case 11: this.editMenu = ((System.Windows.Controls.MenuItem)(target)); return; case 12: this.undoMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 37 "..\..\..\Windows\MainWindow.xaml" this.undoMenuItem.Click += new System.Windows.RoutedEventHandler(this.undoMenuItem_Click); #line default #line hidden return; case 13: this.pasteMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 39 "..\..\..\Windows\MainWindow.xaml" this.pasteMenuItem.Click += new System.Windows.RoutedEventHandler(this.pasteMenuItem_Click); #line default #line hidden return; case 14: this.copyMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 40 "..\..\..\Windows\MainWindow.xaml" this.copyMenuItem.Click += new System.Windows.RoutedEventHandler(this.copyMenuItem_Click); #line default #line hidden return; case 15: this.cutMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 41 "..\..\..\Windows\MainWindow.xaml" this.cutMenuItem.Click += new System.Windows.RoutedEventHandler(this.cutMenuItem_Click); #line default #line hidden return; case 16: this.SelectAllTextMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 42 "..\..\..\Windows\MainWindow.xaml" this.SelectAllTextMenuItem.Click += new System.Windows.RoutedEventHandler(this.SelectAllTextMenuIte_Click); #line default #line hidden return; case 17: this.ReplaceMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 44 "..\..\..\Windows\MainWindow.xaml" this.ReplaceMenuItem.Click += new System.Windows.RoutedEventHandler(this.replaceMenuItem_Click); #line default #line hidden return; case 18: this.FindMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 45 "..\..\..\Windows\MainWindow.xaml" this.FindMenuItem.Click += new System.Windows.RoutedEventHandler(this.FindMenuItem_Click); #line default #line hidden return; case 19: this.helpMenu = ((System.Windows.Controls.MenuItem)(target)); return; case 20: this.aboutMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 49 "..\..\..\Windows\MainWindow.xaml" this.aboutMenuItem.Click += new System.Windows.RoutedEventHandler(this.aboutMenuItem_Click); #line default #line hidden return; case 21: this.btnBold = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 22: this.btnItalic = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 23: this.btnUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 24: this.cmbFontFamily = ((System.Windows.Controls.ComboBox)(target)); #line 71 "..\..\..\Windows\MainWindow.xaml" this.cmbFontFamily.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbFontFamily_SelectionChanged); #line default #line hidden return; case 25: this.cmbFontSize = ((System.Windows.Controls.ComboBox)(target)); #line 72 "..\..\..\Windows\MainWindow.xaml" this.cmbFontSize.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent, new System.Windows.Controls.TextChangedEventHandler(this.cmbFontSize_TextChanged)); #line default #line hidden return; case 26: this.editSpace = ((System.Windows.Controls.RichTextBox)(target)); #line 74 "..\..\..\Windows\MainWindow.xaml" this.editSpace.SelectionChanged += new System.Windows.RoutedEventHandler(this.editSpace_SelectionChanged); #line default #line hidden #line 74 "..\..\..\Windows\MainWindow.xaml" this.editSpace.Initialized += new System.EventHandler(this.editSpace_Initialized); #line default #line hidden return; case 27: #line 78 "..\..\..\Windows\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SelectAllCanExecute); #line default #line hidden #line 79 "..\..\..\Windows\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SelectAllExecute); #line default #line hidden return; case 28: this.tabsGrid = ((System.Windows.Controls.Grid)(target)); return; case 29: this.tabs = ((System.Windows.Controls.TabControl)(target)); #line 88 "..\..\..\Windows\MainWindow.xaml" this.tabs.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabs_SelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }