void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((ZooScenario.MainWindow)(target)); #line 8 "..\..\window.xaml" this.window.Loaded += new System.Windows.RoutedEventHandler(this.window_Loaded); #line default #line hidden #line 8 "..\..\window.xaml" this.window.Closing += new System.ComponentModel.CancelEventHandler(this.window_Closing); #line default #line hidden return; case 2: this.admitGuestButton = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\window.xaml" this.admitGuestButton.Click += new System.Windows.RoutedEventHandler(this.admitGuestButton_Click); #line default #line hidden return; case 3: this.feedAnimalButton = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\window.xaml" this.feedAnimalButton.Click += new System.Windows.RoutedEventHandler(this.feedAnimalButton_Click); #line default #line hidden return; case 4: this.temperatureBorder = ((System.Windows.Controls.Border)(target)); return; case 5: this.increaseTemperature = ((System.Windows.Controls.Primitives.RepeatButton)(target)); #line 21 "..\..\window.xaml" this.increaseTemperature.Click += new System.Windows.RoutedEventHandler(this.increaseTemperature_Click); #line default #line hidden return; case 6: this.decreaseTemperature = ((System.Windows.Controls.Primitives.RepeatButton)(target)); #line 22 "..\..\window.xaml" this.decreaseTemperature.Click += new System.Windows.RoutedEventHandler(this.decreaseTemperature_Click); #line default #line hidden return; case 7: this.temperatureLabel = ((System.Windows.Controls.Label)(target)); return; case 8: this.animalListBox = ((System.Windows.Controls.ListBox)(target)); #line 24 "..\..\window.xaml" this.animalListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.animalListBox_MouseDoubleClick); #line default #line hidden return; case 9: this.guestListBox = ((System.Windows.Controls.ListBox)(target)); #line 26 "..\..\window.xaml" this.guestListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.guestListBox_MouseDoubleClick); #line default #line hidden return; case 10: this.removeAnimalButton = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\window.xaml" this.removeAnimalButton.Click += new System.Windows.RoutedEventHandler(this.removeAnimalButton_Click); #line default #line hidden return; case 11: this.removeGuestButton = ((System.Windows.Controls.Button)(target)); #line 29 "..\..\window.xaml" this.removeGuestButton.Click += new System.Windows.RoutedEventHandler(this.removeGuestButton_Click); #line default #line hidden return; case 12: this.animalTypeComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 13: this.addAnimalButton = ((System.Windows.Controls.Button)(target)); #line 31 "..\..\window.xaml" this.addAnimalButton.Click += new System.Windows.RoutedEventHandler(this.addAnimalButton_Click); #line default #line hidden return; case 14: this.addGuestButton = ((System.Windows.Controls.Button)(target)); #line 32 "..\..\window.xaml" this.addGuestButton.Click += new System.Windows.RoutedEventHandler(this.addGuestButton_Click); #line default #line hidden return; case 15: this.showCageButton = ((System.Windows.Controls.Button)(target)); #line 33 "..\..\window.xaml" this.showCageButton.Click += new System.Windows.RoutedEventHandler(this.showCageButton_Click); #line default #line hidden return; case 16: this.adoptAnimalButton = ((System.Windows.Controls.Button)(target)); #line 34 "..\..\window.xaml" this.adoptAnimalButton.Click += new System.Windows.RoutedEventHandler(this.adoptAnimalButton_Click); #line default #line hidden return; case 17: this.unadpotAnimalButton = ((System.Windows.Controls.Button)(target)); #line 35 "..\..\window.xaml" this.unadpotAnimalButton.Click += new System.Windows.RoutedEventHandler(this.unadpotAnimalButton_Click); #line default #line hidden return; case 18: this.changeBehaviorComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 19: this.changeBehaviorButton = ((System.Windows.Controls.Button)(target)); #line 37 "..\..\window.xaml" this.changeBehaviorButton.Click += new System.Windows.RoutedEventHandler(this.changeBehaviorButton_Click); #line default #line hidden return; case 20: this.birthAnimalButton = ((System.Windows.Controls.Button)(target)); #line 38 "..\..\window.xaml" this.birthAnimalButton.Click += new System.Windows.RoutedEventHandler(this.birthAnimalButton_Click); #line default #line hidden return; case 21: this.saveButton = ((System.Windows.Controls.Button)(target)); #line 39 "..\..\window.xaml" this.saveButton.Click += new System.Windows.RoutedEventHandler(this.saveButton_Click); #line default #line hidden return; case 22: this.loadButton = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\window.xaml" this.loadButton.Click += new System.Windows.RoutedEventHandler(this.loadButton_Click); #line default #line hidden return; case 23: this.restartButton = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\window.xaml" this.restartButton.Click += new System.Windows.RoutedEventHandler(this.restartButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((ZooScenario.MainWindow)(target)); #line 8 "..\..\window.xaml" this.window.Loaded += new System.Windows.RoutedEventHandler(this.window_Loaded); #line default #line hidden return; case 2: this.admitGuestButton = ((System.Windows.Controls.Button)(target)); #line 10 "..\..\window.xaml" this.admitGuestButton.Click += new System.Windows.RoutedEventHandler(this.admitGuestButton_Click); #line default #line hidden return; case 3: this.feedAnimalButton = ((System.Windows.Controls.Button)(target)); #line 11 "..\..\window.xaml" this.feedAnimalButton.Click += new System.Windows.RoutedEventHandler(this.feedAnimalButton_Click); #line default #line hidden return; case 4: this.temperatureBorder = ((System.Windows.Controls.Border)(target)); return; case 5: this.increaseTemperature = ((System.Windows.Controls.Primitives.RepeatButton)(target)); #line 13 "..\..\window.xaml" this.increaseTemperature.Click += new System.Windows.RoutedEventHandler(this.increaseTemperature_Click); #line default #line hidden return; case 6: this.decreaseTemperature = ((System.Windows.Controls.Primitives.RepeatButton)(target)); #line 14 "..\..\window.xaml" this.decreaseTemperature.Click += new System.Windows.RoutedEventHandler(this.decreaseTemperature_Click); #line default #line hidden return; case 7: this.temperatureLabel = ((System.Windows.Controls.Label)(target)); return; case 8: this.animalListBox = ((System.Windows.Controls.ListBox)(target)); #line 16 "..\..\window.xaml" this.animalListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.animalListBox_MouseDoubleClick); #line default #line hidden return; case 9: this.guestListBox = ((System.Windows.Controls.ListBox)(target)); #line 18 "..\..\window.xaml" this.guestListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.guestListBox_MouseDoubleClick); #line default #line hidden return; case 10: this.removeAnimalButton = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\window.xaml" this.removeAnimalButton.Click += new System.Windows.RoutedEventHandler(this.removeAnimalButton_Click); #line default #line hidden return; case 11: this.removeGuestButton = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\window.xaml" this.removeGuestButton.Click += new System.Windows.RoutedEventHandler(this.removeGuestButton_Click); #line default #line hidden return; case 12: this.animalTypeComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 13: this.addAnimalButton = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\window.xaml" this.addAnimalButton.Click += new System.Windows.RoutedEventHandler(this.addAnimalButton_Click); #line default #line hidden return; case 14: this.addGuestButton = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\window.xaml" this.addGuestButton.Click += new System.Windows.RoutedEventHandler(this.addGuestButton_Click); #line default #line hidden return; case 15: this.showCageButton = ((System.Windows.Controls.Button)(target)); #line 25 "..\..\window.xaml" this.showCageButton.Click += new System.Windows.RoutedEventHandler(this.showCageButton_Click); #line default #line hidden return; } this._contentLoaded = true; }