void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ControllerWindowName = ((PlaneController.ControllerWindow)(target)); return; case 2: this.myMap = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 3: this.Joystick = ((PlaneController.Resources.Joystick)(target)); return; case 4: this.Aileron_TextBox = ((System.Windows.Controls.Label)(target)); return; case 5: this.AileronSlider = ((System.Windows.Controls.Slider)(target)); #line 51 "..\..\ControllerWindow.xaml" this.AileronSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.AileronSlider_ValueChanged); #line default #line hidden return; case 6: this.Throttle_TextBox = ((System.Windows.Controls.Label)(target)); return; case 7: this.ThrottleSlider = ((System.Windows.Controls.Slider)(target)); #line 60 "..\..\ControllerWindow.xaml" this.ThrottleSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ThrottleSlider_ValueChanged); #line default #line hidden return; case 8: this.ErrorsLabel = ((System.Windows.Controls.Label)(target)); return; case 9: this.ErrorsComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 101 "..\..\ControllerWindow.xaml" this.ErrorsComboBox.DropDownOpened += new System.EventHandler(this.ErrorsBox_Opened); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.JoystickLayout = ((PlaneController.Resources.Joystick)(target)); return; case 2: this.Base = ((System.Windows.Controls.Canvas)(target)); #line 11 "..\..\..\Resources\Joystick.xaml" this.Base.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Base_MouseLeave); #line default #line hidden #line 11 "..\..\..\Resources\Joystick.xaml" this.Base.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Base_MouseUp); #line default #line hidden return; case 3: this.Knob = ((System.Windows.Controls.Canvas)(target)); #line 52 "..\..\..\Resources\Joystick.xaml" this.Knob.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Knob_Clicked); #line default #line hidden #line 52 "..\..\..\Resources\Joystick.xaml" this.Knob.MouseMove += new System.Windows.Input.MouseEventHandler(this.Knob_Moving); #line default #line hidden return; case 4: this.KnobBase = ((System.Windows.Shapes.Ellipse)(target)); return; case 5: this.knobPosition = ((System.Windows.Media.TranslateTransform)(target)); return; case 6: #line 122 "..\..\..\Resources\Joystick.xaml" ((System.Windows.Media.Animation.Storyboard)(target)).Completed += new System.EventHandler(this.centerKnob_Completed); #line default #line hidden return; } this._contentLoaded = true; }