From c7b45b7dcc1cebd6973f1c82af8d0186ba79bdae Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 30 May 2019 17:52:25 -0500 Subject: [PATCH] Use leave event rather than text changed event --- DS4Windows/DS4Forms/DS4Form.Designer.cs | 6 +-- DS4Windows/DS4Forms/DS4Form.cs | 11 ++-- DS4Windows/DS4Forms/DS4Form.resx | 70 ++++++++++++------------- 3 files changed, 44 insertions(+), 43 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.Designer.cs b/DS4Windows/DS4Forms/DS4Form.Designer.cs index f843f7a..6d93140 100644 --- a/DS4Windows/DS4Forms/DS4Form.Designer.cs +++ b/DS4Windows/DS4Forms/DS4Form.Designer.cs @@ -210,6 +210,7 @@ this.chData}); resources.ApplyResources(this.lvDebug, "lvDebug"); this.lvDebug.FullRowSelect = true; + this.lvDebug.HideSelection = false; this.lvDebug.Name = "lvDebug"; this.lvDebug.UseCompatibleStateImageBehavior = false; this.lvDebug.View = System.Windows.Forms.View.Details; @@ -1206,12 +1207,11 @@ 0, 0, 0}); - // + // // tBUdpListenAddress - // + // resources.ApplyResources(this.tBUdpListenAddress, "tBUdpListenAddress"); this.tBUdpListenAddress.Name = "tBUdpListenAddress"; - this.tBUdpListenAddress.TextChanged += new System.EventHandler(this.tBUdpListenAddress_TextChanged); // // languagePackComboBox1 // diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index d056bd1..9356336 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -335,6 +335,7 @@ namespace DS4Windows.Forms ckUdpServ.CheckedChanged += CkUdpServ_CheckedChanged; nUDUdpPortNum.Leave += NUDUdpPortNum_Leave; + tBUdpListenAddress.Leave += TBUdpListenAddress_Leave; populateHoverTextDict(); @@ -433,6 +434,11 @@ namespace DS4Windows.Forms timerThread.Start(); } + private void TBUdpListenAddress_Leave(object sender, EventArgs e) + { + setUDPServerListenAddress(tBUdpListenAddress.Text.Trim()); + } + private void populateHoverTextDict() { hoverTextDict.Clear(); @@ -2622,11 +2628,6 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question } } - private void tBUdpListenAddress_TextChanged(object sender, EventArgs e) - { - setUDPServerListenAddress(tBUdpListenAddress.Text.Trim()); - } - private void cBFlashWhenLate_CheckedChanged(object sender, EventArgs e) { FlashWhenLate = cBFlashWhenLate.Checked; diff --git a/DS4Windows/DS4Forms/DS4Form.resx b/DS4Windows/DS4Forms/DS4Form.resx index ed42606..3c18b40 100644 --- a/DS4Windows/DS4Forms/DS4Form.resx +++ b/DS4Windows/DS4Forms/DS4Form.resx @@ -445,10 +445,10 @@ NoControl - 742, 89 + 740, 89 - 151, 22 + 153, 22 50 @@ -472,7 +472,7 @@ NoControl - 343, 34 + 342, 34 39, 20 @@ -574,7 +574,7 @@ NoControl - 702, 89 + 700, 89 34, 22 @@ -604,7 +604,7 @@ NoControl - 702, 117 + 700, 117 34, 22 @@ -703,7 +703,7 @@ None - 585, 33 + 583, 33 111, 21 @@ -730,7 +730,7 @@ NoControl - 702, 61 + 700, 61 34, 22 @@ -757,7 +757,7 @@ None - 585, 61 + 583, 61 111, 21 @@ -781,7 +781,7 @@ None - 585, 89 + 583, 89 111, 21 @@ -808,7 +808,7 @@ NoControl - 702, 33 + 700, 33 34, 22 @@ -835,7 +835,7 @@ None - 585, 117 + 583, 117 111, 21 @@ -868,7 +868,7 @@ NoControl - 586, 7 + 584, 7 109, 15 @@ -940,7 +940,7 @@ NoControl - 339, 7 + 338, 7 47, 15 @@ -976,7 +976,7 @@ NoControl - 432, 7 + 430, 7 51, 15 @@ -1012,7 +1012,7 @@ NoControl - 438, 36 + 436, 36 39, 15 @@ -1048,7 +1048,7 @@ NoControl - 438, 64 + 436, 64 39, 15 @@ -1084,7 +1084,7 @@ NoControl - 438, 92 + 436, 92 39, 15 @@ -1120,7 +1120,7 @@ NoControl - 438, 120 + 436, 120 39, 15 @@ -1150,7 +1150,7 @@ NoControl - 343, 62 + 342, 62 39, 20 @@ -1180,7 +1180,7 @@ NoControl - 343, 90 + 342, 90 39, 20 @@ -1210,7 +1210,7 @@ NoControl - 343, 118 + 342, 118 39, 20 @@ -1243,10 +1243,10 @@ NoControl - 742, 33 + 740, 33 - 151, 22 + 153, 22 50 @@ -1273,10 +1273,10 @@ NoControl - 742, 61 + 740, 61 - 151, 22 + 153, 22 51 @@ -1303,10 +1303,10 @@ NoControl - 742, 117 + 740, 117 - 151, 22 + 153, 22 52 @@ -1336,7 +1336,7 @@ NoControl - 508, 0 + 506, 0 67, 30 @@ -1375,7 +1375,7 @@ NoControl - 534, 37 + 532, 37 15, 14 @@ -1408,7 +1408,7 @@ NoControl - 534, 65 + 532, 65 15, 14 @@ -1441,7 +1441,7 @@ NoControl - 534, 93 + 532, 93 15, 14 @@ -1474,7 +1474,7 @@ NoControl - 534, 121 + 532, 121 15, 14 @@ -1522,7 +1522,7 @@ 0 - <?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,62.29144,Percent,20.02225,Percent,17.68632,Absolute,80,AutoSize,0,AutoSize,0,Absolute,155" /><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,62.29144,Percent,20.02225,Percent,17.68632,Absolute,80,AutoSize,0,AutoSize,0,Absolute,157" /><Rows Styles="AutoSize,0,Percent,25,Percent,25,Percent,25,Percent,25" /></TableLayoutSettings> Fill @@ -2848,7 +2848,7 @@ languagePackComboBox1 - DS4Windows.DS4Forms.LanguagePackComboBox, DS4Windows, Version=1.7.8.0, Culture=neutral, PublicKeyToken=null + DS4Windows.DS4Forms.LanguagePackComboBox, DS4Windows, Version=1.7.9.0, Culture=neutral, PublicKeyToken=null fLPSettings @@ -3589,7 +3589,7 @@ advColorDialog - DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.7.8.0, Culture=neutral, PublicKeyToken=null + DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.7.9.0, Culture=neutral, PublicKeyToken=null DS4Form