void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((Animation.MainWindow)(target)); #line 9 "..\..\MainWindow.xaml" this.window.KeyDown += new System.Windows.Input.KeyEventHandler(this.mainCanvas_KeyDown); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.window.KeyUp += new System.Windows.Input.KeyEventHandler(this.window_KeyUp); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.window.MouseMove += new System.Windows.Input.MouseEventHandler(this.mainCanvas_MouseMove); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.window.Closing += new System.ComponentModel.CancelEventHandler(this.window_Closing); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.window.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.window_MouseUp); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.window_MouseDown); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.window.Loaded += new System.Windows.RoutedEventHandler(this.window_Loaded); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.window.SizeChanged += new System.Windows.SizeChangedEventHandler(this.window_SizeChanged); #line default #line hidden return; case 2: #line 14 "..\..\MainWindow.xaml" ((System.Windows.Controls.DockPanel)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.mainCanvas_MouseDown); #line default #line hidden #line 14 "..\..\MainWindow.xaml" ((System.Windows.Controls.DockPanel)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.mainCanvas_MouseUp); #line default #line hidden return; case 3: this.tb_score = ((System.Windows.Controls.TextBox)(target)); #line 17 "..\..\MainWindow.xaml" this.tb_score.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.tb_score_TextChanged); #line default #line hidden return; case 4: this.btn_menu = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\MainWindow.xaml" this.btn_menu.Click += new System.Windows.RoutedEventHandler(this.btn_menu_Click); #line default #line hidden return; case 5: this.life = ((System.Windows.Controls.ProgressBar)(target)); #line 23 "..\..\MainWindow.xaml" this.life.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.life_ValueChanged); #line default #line hidden return; case 6: this.mainCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 7: this.warship = ((System.Windows.Controls.Canvas)(target)); return; case 8: this.gun = ((System.Windows.Controls.Image)(target)); return; case 9: this.rocket = ((System.Windows.Controls.Image)(target)); return; case 10: this.monster = ((System.Windows.Controls.Canvas)(target)); return; case 11: this.monsterLife = ((System.Windows.Controls.ProgressBar)(target)); #line 33 "..\..\MainWindow.xaml" this.monsterLife.Loaded += new System.Windows.RoutedEventHandler(this.monsterLife_Loaded); #line default #line hidden #line 33 "..\..\MainWindow.xaml" this.monsterLife.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.monsterLife_ValueChanged); #line default #line hidden return; } this._contentLoaded = true; }