void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 39 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExitApplication); #line default #line hidden return; case 2: #line 109 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Toggle_Transform_Mode); #line default #line hidden return; case 3: this.EditorViewport = ((XNAControl.UserControl1)(target)); #line 171 "..\..\MainWindow.xaml" this.EditorViewport.Loaded += new System.Windows.RoutedEventHandler(this.EditorViewport_Loaded); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\MainWindow.xaml" ((MapEditor.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.root = ((System.Windows.Controls.Grid)(target)); return; case 3: this.toolBar = ((System.Windows.Controls.ToolBar)(target)); return; case 4: this.menu = ((System.Windows.Controls.Menu)(target)); return; case 5: this.fileMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 6: this.newProjectMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 25 "..\..\MainWindow.xaml" this.newProjectMenuItem.Click += new System.Windows.RoutedEventHandler(this.newProjectMenuItem_Click); #line default #line hidden return; case 7: this.loadProjectMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 26 "..\..\MainWindow.xaml" this.loadProjectMenuItem.Click += new System.Windows.RoutedEventHandler(this.loadProjectMenuItem_Click); #line default #line hidden return; case 8: this.saveProjectMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 27 "..\..\MainWindow.xaml" this.saveProjectMenuItem.Click += new System.Windows.RoutedEventHandler(this.saveProjectMenuItem_Click); #line default #line hidden return; case 9: this.saveAsImageMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 10: this.exitProgramMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 11: this.viewMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 12: this.windowsMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 13: this.viewMapMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 35 "..\..\MainWindow.xaml" this.viewMapMenuItem.Click += new System.Windows.RoutedEventHandler(this.viewMapMenuItem_Click); #line default #line hidden return; case 14: this.viewPropertiesMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 36 "..\..\MainWindow.xaml" this.viewPropertiesMenuItem.Click += new System.Windows.RoutedEventHandler(this.viewPropertiesMenuItem_Click); #line default #line hidden return; case 15: this.viewProjectExplorerMenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 37 "..\..\MainWindow.xaml" this.viewProjectExplorerMenuItem.Click += new System.Windows.RoutedEventHandler(this.viewProjectExplorerMenuItem_Click); #line default #line hidden return; case 16: this.editMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 17: this.copyMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 18: this.pasteMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 19: this.cutMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 20: this.undoMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 21: this.redoMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 22: this.addMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 23: this.helpMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 24: this.dockingManager = ((Xceed.Wpf.AvalonDock.DockingManager)(target)); return; case 25: this.projectExplorerView = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target)); #line 60 "..\..\MainWindow.xaml" this.projectExplorerView.Closing += new System.EventHandler<System.ComponentModel.CancelEventArgs>(this.view_Closing); #line default #line hidden return; case 26: this.projectExplorerRoot = ((System.Windows.Controls.Canvas)(target)); return; case 27: this.mapView = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target)); #line 66 "..\..\MainWindow.xaml" this.mapView.Closing += new System.EventHandler<System.ComponentModel.CancelEventArgs>(this.view_Closing); #line default #line hidden return; case 28: this.xnaControl = ((XNAControl.UserControl1)(target)); #line 67 "..\..\MainWindow.xaml" this.xnaControl.SizeChanged += new System.Windows.SizeChangedEventHandler(this.xnaControl_SizeChanged); #line default #line hidden return; case 29: this.propertiesView = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target)); #line 72 "..\..\MainWindow.xaml" this.propertiesView.Closing += new System.EventHandler<System.ComponentModel.CancelEventArgs>(this.view_Closing); #line default #line hidden return; } this._contentLoaded = true; }