void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.wnMain = ((TCPUIClient.MainWindow)(target)); #line 4 "..\..\MainWindow.xaml" this.wnMain.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden #line 4 "..\..\MainWindow.xaml" this.wnMain.GotFocus += new System.Windows.RoutedEventHandler(this.Window_GotFocus); #line default #line hidden #line 4 "..\..\MainWindow.xaml" this.wnMain.MouseMove += new System.Windows.Input.MouseEventHandler(this.Window_MouseMove); #line default #line hidden #line 4 "..\..\MainWindow.xaml" this.wnMain.Activated += new System.EventHandler(this.Window_Activated); #line default #line hidden return; case 2: #line 5 "..\..\MainWindow.xaml" ((System.Windows.Controls.Grid)(target)).Initialized += new System.EventHandler(this.Grid_Initialized); #line default #line hidden #line 5 "..\..\MainWindow.xaml" ((System.Windows.Controls.Grid)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.Grid_GotFocus); #line default #line hidden return; case 3: this.txMessage = ((System.Windows.Controls.TextBox)(target)); #line 13 "..\..\MainWindow.xaml" this.txMessage.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txMessage_TextChanged); #line default #line hidden #line 13 "..\..\MainWindow.xaml" this.txMessage.KeyDown += new System.Windows.Input.KeyEventHandler(this.txMessage_KeyDown); #line default #line hidden return; case 4: this.btnSend = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\MainWindow.xaml" this.btnSend.Click += new System.Windows.RoutedEventHandler(this.btnSend_Click); #line default #line hidden return; case 5: this.txMain = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.txStatus = ((System.Windows.Controls.TextBox)(target)); return; case 7: #line 19 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 8: #line 23 "..\..\MainWindow.xaml" ((System.Windows.Controls.Image)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonUp); #line default #line hidden return; case 9: #line 31 "..\..\MainWindow.xaml" ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged); #line default #line hidden return; case 10: this.btnConnect = ((System.Windows.Controls.Button)(target)); #line 37 "..\..\MainWindow.xaml" this.btnConnect.Click += new System.Windows.RoutedEventHandler(this.btnConnect_Click); #line default #line hidden return; case 11: this.btnDisconnect = ((System.Windows.Controls.Button)(target)); #line 38 "..\..\MainWindow.xaml" this.btnDisconnect.Click += new System.Windows.RoutedEventHandler(this.btnDisconnect_Click); #line default #line hidden return; case 12: this.txServername = ((System.Windows.Controls.TextBox)(target)); #line 39 "..\..\MainWindow.xaml" this.txServername.LostFocus += new System.Windows.RoutedEventHandler(this.txServername_LostFocus); #line default #line hidden #line 39 "..\..\MainWindow.xaml" this.txServername.KeyDown += new System.Windows.Input.KeyEventHandler(this.txServername_KeyDown); #line default #line hidden return; case 13: this.txPort = ((System.Windows.Controls.TextBox)(target)); #line 41 "..\..\MainWindow.xaml" this.txPort.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txPort_TextChanged); #line default #line hidden #line 41 "..\..\MainWindow.xaml" this.txPort.KeyDown += new System.Windows.Input.KeyEventHandler(this.txPort_KeyDown); #line default #line hidden return; case 14: this.cbOutputGPData = ((System.Windows.Controls.CheckBox)(target)); #line 43 "..\..\MainWindow.xaml" this.cbOutputGPData.Click += new System.Windows.RoutedEventHandler(this.cbOutputGPData_Click); #line default #line hidden #line 43 "..\..\MainWindow.xaml" this.cbOutputGPData.Checked += new System.Windows.RoutedEventHandler(this.cbOutputGPData_Checked); #line default #line hidden return; case 15: this.tbGamePad = ((System.Windows.Controls.TabItem)(target)); return; case 16: this.cbGameEnabled = ((System.Windows.Controls.CheckBox)(target)); #line 52 "..\..\MainWindow.xaml" this.cbGameEnabled.Click += new System.Windows.RoutedEventHandler(this.cbGameEnabled_Click); #line default #line hidden return; case 17: this.slDeadZone = ((System.Windows.Controls.Slider)(target)); #line 54 "..\..\MainWindow.xaml" this.slDeadZone.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged); #line default #line hidden return; case 18: this.slTXRate = ((System.Windows.Controls.Slider)(target)); #line 55 "..\..\MainWindow.xaml" this.slTXRate.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_1); #line default #line hidden return; case 19: this.slCenter = ((System.Windows.Controls.Slider)(target)); #line 57 "..\..\MainWindow.xaml" this.slCenter.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slCenter_ValueChanged); #line default #line hidden return; case 20: this.lbCenter = ((System.Windows.Controls.Label)(target)); #line 58 "..\..\MainWindow.xaml" this.lbCenter.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.lbCenter_MouseLeftButtonUp); #line default #line hidden return; case 21: this.cbTranslate = ((System.Windows.Controls.CheckBox)(target)); #line 59 "..\..\MainWindow.xaml" this.cbTranslate.Click += new System.Windows.RoutedEventHandler(this.cbTranslate_Click); #line default #line hidden return; case 22: this.cbGamepadType = ((System.Windows.Controls.ComboBox)(target)); #line 60 "..\..\MainWindow.xaml" this.cbGamepadType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbGamepadType_SelectionChanged); #line default #line hidden #line 60 "..\..\MainWindow.xaml" this.cbGamepadType.DropDownClosed += new System.EventHandler(this.cbGamepadType_DropDownClosed); #line default #line hidden return; case 23: this.tbVideoType = ((System.Windows.Controls.TabItem)(target)); return; case 24: this.cbVideo = ((System.Windows.Controls.CheckBox)(target)); #line 76 "..\..\MainWindow.xaml" this.cbVideo.Click += new System.Windows.RoutedEventHandler(this.cbVideo_Click); #line default #line hidden return; case 25: this.cbVideoType = ((System.Windows.Controls.ComboBox)(target)); #line 77 "..\..\MainWindow.xaml" this.cbVideoType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbVideoType_SelectionChanged); #line default #line hidden #line 77 "..\..\MainWindow.xaml" this.cbVideoType.DropDownClosed += new System.EventHandler(this.cbVideoType_DropDownClosed); #line default #line hidden return; case 26: this.cbVideoControl = ((System.Windows.Controls.CheckBox)(target)); #line 82 "..\..\MainWindow.xaml" this.cbVideoControl.Click += new System.Windows.RoutedEventHandler(this.cbVideoControl_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.wnMain = ((TCPUIClient.MainWindow)(target)); #line 4 "..\..\MainWindow.xaml" this.wnMain.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden #line 4 "..\..\MainWindow.xaml" this.wnMain.GotFocus += new System.Windows.RoutedEventHandler(this.Window_GotFocus); #line default #line hidden #line 4 "..\..\MainWindow.xaml" this.wnMain.MouseMove += new System.Windows.Input.MouseEventHandler(this.Window_MouseMove); #line default #line hidden #line 4 "..\..\MainWindow.xaml" this.wnMain.Activated += new System.EventHandler(this.Window_Activated); #line default #line hidden return; case 2: #line 5 "..\..\MainWindow.xaml" ((System.Windows.Controls.Grid)(target)).Initialized += new System.EventHandler(this.Grid_Initialized); #line default #line hidden #line 5 "..\..\MainWindow.xaml" ((System.Windows.Controls.Grid)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.Grid_GotFocus); #line default #line hidden return; case 3: this.txMessage = ((System.Windows.Controls.TextBox)(target)); #line 13 "..\..\MainWindow.xaml" this.txMessage.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txMessage_TextChanged); #line default #line hidden #line 13 "..\..\MainWindow.xaml" this.txMessage.KeyDown += new System.Windows.Input.KeyEventHandler(this.txMessage_KeyDown); #line default #line hidden return; case 4: this.btnSend = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\MainWindow.xaml" this.btnSend.Click += new System.Windows.RoutedEventHandler(this.btnSend_Click); #line default #line hidden return; case 5: this.txMain = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.txStatus = ((System.Windows.Controls.TextBox)(target)); return; case 7: #line 19 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 8: #line 23 "..\..\MainWindow.xaml" ((System.Windows.Controls.Image)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonUp); #line default #line hidden return; case 9: #line 31 "..\..\MainWindow.xaml" ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged); #line default #line hidden return; case 10: this.btnConnect = ((System.Windows.Controls.Button)(target)); #line 37 "..\..\MainWindow.xaml" this.btnConnect.Click += new System.Windows.RoutedEventHandler(this.btnConnect_Click); #line default #line hidden return; case 11: this.btnDisconnect = ((System.Windows.Controls.Button)(target)); #line 38 "..\..\MainWindow.xaml" this.btnDisconnect.Click += new System.Windows.RoutedEventHandler(this.btnDisconnect_Click); #line default #line hidden return; case 12: this.txServername = ((System.Windows.Controls.TextBox)(target)); #line 39 "..\..\MainWindow.xaml" this.txServername.LostFocus += new System.Windows.RoutedEventHandler(this.txServername_LostFocus); #line default #line hidden #line 39 "..\..\MainWindow.xaml" this.txServername.KeyDown += new System.Windows.Input.KeyEventHandler(this.txServername_KeyDown); #line default #line hidden return; case 13: this.txPort = ((System.Windows.Controls.TextBox)(target)); #line 41 "..\..\MainWindow.xaml" this.txPort.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txPort_TextChanged); #line default #line hidden #line 41 "..\..\MainWindow.xaml" this.txPort.KeyDown += new System.Windows.Input.KeyEventHandler(this.txPort_KeyDown); #line default #line hidden return; case 14: this.cbOutputGPData = ((System.Windows.Controls.CheckBox)(target)); #line 43 "..\..\MainWindow.xaml" this.cbOutputGPData.Click += new System.Windows.RoutedEventHandler(this.cbOutputGPData_Click); #line default #line hidden #line 43 "..\..\MainWindow.xaml" this.cbOutputGPData.Checked += new System.Windows.RoutedEventHandler(this.cbOutputGPData_Checked); #line default #line hidden return; case 15: this.tbGamePad = ((System.Windows.Controls.TabItem)(target)); return; case 16: this.cbGameEnabled = ((System.Windows.Controls.CheckBox)(target)); #line 52 "..\..\MainWindow.xaml" this.cbGameEnabled.Click += new System.Windows.RoutedEventHandler(this.cbGameEnabled_Click); #line default #line hidden return; case 17: this.slDeadZone = ((System.Windows.Controls.Slider)(target)); #line 54 "..\..\MainWindow.xaml" this.slDeadZone.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.Slider_ValueChanged); #line default #line hidden return; case 18: this.slTXRate = ((System.Windows.Controls.Slider)(target)); #line 55 "..\..\MainWindow.xaml" this.slTXRate.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.Slider_ValueChanged_1); #line default #line hidden return; case 19: this.slCenter = ((System.Windows.Controls.Slider)(target)); #line 57 "..\..\MainWindow.xaml" this.slCenter.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slCenter_ValueChanged); #line default #line hidden return; case 20: this.lbCenter = ((System.Windows.Controls.Label)(target)); #line 58 "..\..\MainWindow.xaml" this.lbCenter.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.lbCenter_MouseLeftButtonUp); #line default #line hidden return; case 21: this.cbTranslate = ((System.Windows.Controls.CheckBox)(target)); #line 59 "..\..\MainWindow.xaml" this.cbTranslate.Click += new System.Windows.RoutedEventHandler(this.cbTranslate_Click); #line default #line hidden return; case 22: this.cbGamepadType = ((System.Windows.Controls.ComboBox)(target)); #line 60 "..\..\MainWindow.xaml" this.cbGamepadType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbGamepadType_SelectionChanged); #line default #line hidden #line 60 "..\..\MainWindow.xaml" this.cbGamepadType.DropDownClosed += new System.EventHandler(this.cbGamepadType_DropDownClosed); #line default #line hidden return; case 23: this.tbVideoType = ((System.Windows.Controls.TabItem)(target)); return; case 24: this.cbVideo = ((System.Windows.Controls.CheckBox)(target)); #line 76 "..\..\MainWindow.xaml" this.cbVideo.Click += new System.Windows.RoutedEventHandler(this.cbVideo_Click); #line default #line hidden return; case 25: this.cbVideoType = ((System.Windows.Controls.ComboBox)(target)); #line 77 "..\..\MainWindow.xaml" this.cbVideoType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbVideoType_SelectionChanged); #line default #line hidden #line 77 "..\..\MainWindow.xaml" this.cbVideoType.DropDownClosed += new System.EventHandler(this.cbVideoType_DropDownClosed); #line default #line hidden return; case 26: this.cbVideoControl = ((System.Windows.Controls.CheckBox)(target)); #line 82 "..\..\MainWindow.xaml" this.cbVideoControl.Click += new System.Windows.RoutedEventHandler(this.cbVideoControl_Click); #line default #line hidden return; } this._contentLoaded = true; }