From 37a067515d55cb2f978b81a8dafac768dd46ea05 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 11 Nov 2017 13:07:26 -0600 Subject: [PATCH] Remove unused event handlers --- DS4Windows/DS4Forms/DS4Form.Designer.cs | 2 - DS4Windows/DS4Forms/DS4Form.cs | 12 +---- DS4Windows/DS4Forms/DS4Form.resx | 68 ++++++++++++------------- 3 files changed, 35 insertions(+), 47 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.Designer.cs b/DS4Windows/DS4Forms/DS4Form.Designer.cs index c1b746a..7d72d25 100644 --- a/DS4Windows/DS4Forms/DS4Form.Designer.cs +++ b/DS4Windows/DS4Forms/DS4Form.Designer.cs @@ -1122,8 +1122,6 @@ this.pnlXIPorts.Controls.Add(this.lbLastXIPort); resources.ApplyResources(this.pnlXIPorts, "pnlXIPorts"); this.pnlXIPorts.Name = "pnlXIPorts"; - this.pnlXIPorts.MouseEnter += new System.EventHandler(this.pnlXIPorts_MouseEnter); - this.pnlXIPorts.MouseLeave += new System.EventHandler(this.pnlXIPorts_MouseLeave); // // lbUseXIPorts // diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index e4c2b83..11ee0fa 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -2230,22 +2230,12 @@ namespace DS4Windows toolTip1.Hide(lbLastMessage); } - private void pnlXIPorts_MouseEnter(object sender, EventArgs e) - { - //oldxiport = (int)Math.Round(nUDXIPorts.Value,0); - } - - int oldxiport; - private void pnlXIPorts_MouseLeave(object sender, EventArgs e) - { - - } - private void nUDXIPorts_ValueChanged(object sender, EventArgs e) { lbLastXIPort.Text = "- " + ((int)Math.Round(nUDXIPorts.Value, 0) + 3); } + private int oldxiport; private void nUDXIPorts_Leave(object sender, EventArgs e) { if (oldxiport != (int)Math.Round(nUDXIPorts.Value, 0)) diff --git a/DS4Windows/DS4Forms/DS4Form.resx b/DS4Windows/DS4Forms/DS4Form.resx index b8f3006..5b6c52c 100644 --- a/DS4Windows/DS4Forms/DS4Form.resx +++ b/DS4Windows/DS4Forms/DS4Form.resx @@ -439,10 +439,10 @@ NoControl - 788, 89 + 786, 89 - 105, 22 + 107, 22 50 @@ -466,7 +466,7 @@ NoControl - 358, 34 + 357, 34 39, 20 @@ -568,7 +568,7 @@ NoControl - 748, 89 + 746, 89 34, 22 @@ -598,7 +598,7 @@ NoControl - 748, 117 + 746, 117 34, 22 @@ -697,7 +697,7 @@ None - 631, 33 + 629, 33 111, 21 @@ -724,7 +724,7 @@ NoControl - 748, 61 + 746, 61 34, 22 @@ -751,7 +751,7 @@ None - 631, 61 + 629, 61 111, 21 @@ -775,7 +775,7 @@ None - 631, 89 + 629, 89 111, 21 @@ -802,7 +802,7 @@ NoControl - 748, 33 + 746, 33 34, 22 @@ -829,7 +829,7 @@ None - 631, 117 + 629, 117 111, 21 @@ -862,7 +862,7 @@ NoControl - 632, 7 + 630, 7 109, 15 @@ -934,7 +934,7 @@ NoControl - 354, 7 + 353, 7 47, 15 @@ -970,7 +970,7 @@ NoControl - 466, 7 + 465, 7 51, 15 @@ -1006,7 +1006,7 @@ NoControl - 472, 36 + 471, 36 39, 15 @@ -1042,7 +1042,7 @@ NoControl - 472, 64 + 471, 64 39, 15 @@ -1078,7 +1078,7 @@ NoControl - 472, 92 + 471, 92 39, 15 @@ -1114,7 +1114,7 @@ NoControl - 472, 120 + 471, 120 39, 15 @@ -1144,7 +1144,7 @@ NoControl - 358, 62 + 357, 62 39, 20 @@ -1174,7 +1174,7 @@ NoControl - 358, 90 + 357, 90 39, 20 @@ -1204,7 +1204,7 @@ NoControl - 358, 118 + 357, 118 39, 20 @@ -1237,10 +1237,10 @@ NoControl - 788, 33 + 786, 33 - 105, 22 + 107, 22 50 @@ -1267,10 +1267,10 @@ NoControl - 788, 61 + 786, 61 - 105, 22 + 107, 22 51 @@ -1297,10 +1297,10 @@ NoControl - 788, 117 + 786, 117 - 105, 22 + 107, 22 52 @@ -1330,7 +1330,7 @@ NoControl - 554, 0 + 552, 0 67, 30 @@ -1369,7 +1369,7 @@ NoControl - 580, 37 + 578, 37 15, 14 @@ -1402,7 +1402,7 @@ NoControl - 580, 65 + 578, 65 15, 14 @@ -1435,7 +1435,7 @@ NoControl - 580, 93 + 578, 93 15, 14 @@ -1468,7 +1468,7 @@ NoControl - 580, 121 + 578, 121 15, 14 @@ -1516,7 +1516,7 @@ 1 - <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="bnLight3" Row="3" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="pBStatus1" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbPad1" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad2" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="bnEditC3" Row="3" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="bnEditC4" Row="4" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="lbPad3" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad4" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="cBController1" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC2" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController2" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController3" Row="3" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC1" Row="1" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController4" Row="4" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbSelectedProfile" Row="0" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbID" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbStatus" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbBattery" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt1" Row="1" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt2" Row="2" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt3" Row="3" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt4" Row="4" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="pBStatus2" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus3" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus4" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="bnLight1" Row="1" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight2" Row="2" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight4" Row="4" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="lbLinkProfile" Row="0" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB1" Row="1" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB2" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB3" Row="3" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB4" Row="4" RowSpan="1" Column="3" ColumnSpan="1" /></Controls><Columns Styles="Percent,58.35329,Percent,21.22288,Percent,20.42383,Absolute,80,AutoSize,0,Absolute,40,Absolute,110" /><Rows Styles="AutoSize,0,Percent,25,Percent,25,Percent,25,Percent,25" /></TableLayoutSettings> + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="bnLight3" Row="3" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="pBStatus1" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbPad1" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad2" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="bnEditC3" Row="3" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="bnEditC4" Row="4" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="lbPad3" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad4" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="cBController1" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC2" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController2" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController3" Row="3" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC1" Row="1" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController4" Row="4" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbSelectedProfile" Row="0" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbID" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbStatus" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbBattery" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt1" Row="1" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt2" Row="2" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt3" Row="3" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt4" Row="4" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="pBStatus2" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus3" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus4" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="bnLight1" Row="1" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight2" Row="2" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight4" Row="4" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="lbLinkProfile" Row="0" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB1" Row="1" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB2" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB3" Row="3" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB4" Row="4" RowSpan="1" Column="3" ColumnSpan="1" /></Controls><Columns Styles="Percent,58.35329,Percent,21.22288,Percent,20.42383,Absolute,80,AutoSize,0,Absolute,40,Absolute,111" /><Rows Styles="AutoSize,0,Percent,25,Percent,25,Percent,25,Percent,25" /></TableLayoutSettings> Fill @@ -3439,7 +3439,7 @@ advColorDialog - DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.4.99.0, Culture=neutral, PublicKeyToken=null + DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.4.100.0, Culture=neutral, PublicKeyToken=null DS4Form