示例#1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 5 "..\..\MainWindow.xaml"
     ((stm32GateWayDebug.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);
     
     #line default
     #line hidden
     
     #line 5 "..\..\MainWindow.xaml"
     ((stm32GateWayDebug.MainWindow)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Window_Unloaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.cvsPanel = ((System.Windows.Controls.Canvas)(target));
     return;
     case 3:
     this.devCtrls = ((stm32GateWayDebug.devMgrCtrl)(target));
     return;
     case 4:
     this.cvsSend = ((System.Windows.Controls.Canvas)(target));
     return;
     case 5:
     this.btnGetAllDevs = ((System.Windows.Controls.Button)(target));
     
     #line 17 "..\..\MainWindow.xaml"
     this.btnGetAllDevs.Click += new System.Windows.RoutedEventHandler(this.btnGetAllDevs_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnClearAllDevs = ((System.Windows.Controls.Button)(target));
     
     #line 18 "..\..\MainWindow.xaml"
     this.btnClearAllDevs.Click += new System.Windows.RoutedEventHandler(this.btnClearAllDevs_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnModeSet_1 = ((System.Windows.Controls.Button)(target));
     
     #line 19 "..\..\MainWindow.xaml"
     this.btnModeSet_1.Click += new System.Windows.RoutedEventHandler(this.btnModeSet_1_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnModeSet_2 = ((System.Windows.Controls.Button)(target));
     
     #line 20 "..\..\MainWindow.xaml"
     this.btnModeSet_2.Click += new System.Windows.RoutedEventHandler(this.btnModeSet_2_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnModeSet_3 = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\MainWindow.xaml"
     this.btnModeSet_3.Click += new System.Windows.RoutedEventHandler(this.btnModeSet_3_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.btnModeSet_4 = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\MainWindow.xaml"
     this.btnModeSet_4.Click += new System.Windows.RoutedEventHandler(this.btnModeSet_4_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.ctrlCmdMgr = ((stm32GateWayDebug.cmdMgrCtrl)(target));
     return;
     case 12:
     this.btnCrc32 = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\MainWindow.xaml"
     this.btnCrc32.Click += new System.Windows.RoutedEventHandler(this.btnCrc32_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.cvsPanel = ((System.Windows.Controls.Canvas)(target));
     return;
     case 2:
     this.devCtrls = ((stm32GateWayDebug.devMgrCtrl)(target));
     return;
     case 3:
     this.cvsSend = ((System.Windows.Controls.Canvas)(target));
     return;
     case 4:
     this.btnSendCmd = ((System.Windows.Controls.Button)(target));
     
     #line 17 "..\..\mainTestCtrl.xaml"
     this.btnSendCmd.Click += new System.Windows.RoutedEventHandler(this.btnSendCmd_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnClearLog = ((System.Windows.Controls.Button)(target));
     
     #line 18 "..\..\mainTestCtrl.xaml"
     this.btnClearLog.Click += new System.Windows.RoutedEventHandler(this.btnClearLog_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.txtLog = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.txtCmd = ((System.Windows.Controls.TextBox)(target));
     
     #line 20 "..\..\mainTestCtrl.xaml"
     this.txtCmd.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtCmd_TextChanged);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnGetAllDevs = ((System.Windows.Controls.Button)(target));
     
     #line 23 "..\..\mainTestCtrl.xaml"
     this.btnGetAllDevs.Click += new System.Windows.RoutedEventHandler(this.btnGetAllDevs_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }