Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.pilotPrefComp = ((PilotPreferences.ToolboxControl)(target));
     return;
     case 2:
     this.leftSensitivityValLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.rightSensitivityValLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.leftMinVal = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.leftMaxVal = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.rightMinVal = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.rightMaxVal = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.topSpeedVal = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.toggleXboxControllerButton = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\MainWindow.xaml"
     this.toggleXboxControllerButton.Click += new System.Windows.RoutedEventHandler(this.toggleXboxControllerButton_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.leftTrigLab = ((System.Windows.Controls.Label)(target));
     
     #line 23 "..\..\MainWindow.xaml"
     this.leftTrigLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 23 "..\..\MainWindow.xaml"
     this.leftTrigLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 11:
     this.leftBumpLab = ((System.Windows.Controls.Label)(target));
     
     #line 24 "..\..\MainWindow.xaml"
     this.leftBumpLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 24 "..\..\MainWindow.xaml"
     this.leftBumpLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 12:
     this.DUpLab = ((System.Windows.Controls.Label)(target));
     
     #line 25 "..\..\MainWindow.xaml"
     this.DUpLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 25 "..\..\MainWindow.xaml"
     this.DUpLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 13:
     this.DDownLab = ((System.Windows.Controls.Label)(target));
     
     #line 26 "..\..\MainWindow.xaml"
     this.DDownLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 26 "..\..\MainWindow.xaml"
     this.DDownLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 14:
     this.DLeftLab = ((System.Windows.Controls.Label)(target));
     
     #line 27 "..\..\MainWindow.xaml"
     this.DLeftLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 27 "..\..\MainWindow.xaml"
     this.DLeftLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 15:
     this.DRightLab = ((System.Windows.Controls.Label)(target));
     
     #line 28 "..\..\MainWindow.xaml"
     this.DRightLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 28 "..\..\MainWindow.xaml"
     this.DRightLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 16:
     this.BackLab = ((System.Windows.Controls.Label)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.BackLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 29 "..\..\MainWindow.xaml"
     this.BackLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 17:
     this.startLab = ((System.Windows.Controls.Label)(target));
     
     #line 30 "..\..\MainWindow.xaml"
     this.startLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 30 "..\..\MainWindow.xaml"
     this.startLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 18:
     this.YLab = ((System.Windows.Controls.Label)(target));
     
     #line 31 "..\..\MainWindow.xaml"
     this.YLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 31 "..\..\MainWindow.xaml"
     this.YLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 19:
     this.XLab = ((System.Windows.Controls.Label)(target));
     
     #line 32 "..\..\MainWindow.xaml"
     this.XLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 32 "..\..\MainWindow.xaml"
     this.XLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 20:
     this.BLab = ((System.Windows.Controls.Label)(target));
     
     #line 33 "..\..\MainWindow.xaml"
     this.BLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 33 "..\..\MainWindow.xaml"
     this.BLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 21:
     this.ALab = ((System.Windows.Controls.Label)(target));
     
     #line 34 "..\..\MainWindow.xaml"
     this.ALab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 34 "..\..\MainWindow.xaml"
     this.ALab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 22:
     this.rightTrigLab = ((System.Windows.Controls.Label)(target));
     
     #line 35 "..\..\MainWindow.xaml"
     this.rightTrigLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 35 "..\..\MainWindow.xaml"
     this.rightTrigLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     case 23:
     this.rightBumpLab = ((System.Windows.Controls.Label)(target));
     
     #line 36 "..\..\MainWindow.xaml"
     this.rightBumpLab.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);
     
     #line default
     #line hidden
     
     #line 36 "..\..\MainWindow.xaml"
     this.rightBumpLab.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Пример #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 5 "..\..\MainWindow.xaml"
     ((DriveTerminal.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     
     #line 5 "..\..\MainWindow.xaml"
     ((DriveTerminal.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded_1);
     
     #line default
     #line hidden
     return;
     case 2:
     this.commViz = ((commFeedViz.commFeedViz)(target));
     return;
     case 3:
     this.pilotPreferences = ((PilotPreferences.ToolboxControl)(target));
     return;
     case 4:
     this.connectionIndicator = ((networkStatusIndicator.ToolboxControl)(target));
     return;
     }
     this._contentLoaded = true;
 }