From 7a1b382c5a9511049909ef84b9d5fdc5d5801315 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Fri, 12 May 2017 22:54:29 -0700 Subject: [PATCH] Code clean up --- DS4Windows/DS4Forms/DS4Form.Designer.cs | 15 +- DS4Windows/DS4Forms/DS4Form.cs | 207 +- DS4Windows/DS4Forms/DS4Form.resx | 3739 ++++++++++------------- 3 files changed, 1669 insertions(+), 2292 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.Designer.cs b/DS4Windows/DS4Forms/DS4Form.Designer.cs index 12517ee..a4e7b5a 100644 --- a/DS4Windows/DS4Forms/DS4Form.Designer.cs +++ b/DS4Windows/DS4Forms/DS4Form.Designer.cs @@ -33,7 +33,6 @@ this.lvDebug = new System.Windows.Forms.ListView(); this.chTime = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chData = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.tmrUpdate = new System.Windows.Forms.Timer(this.components); this.pnlButton = new System.Windows.Forms.Panel(); this.llbHelp = new System.Windows.Forms.LinkLabel(); this.lbTest = new System.Windows.Forms.Label(); @@ -207,11 +206,6 @@ // resources.ApplyResources(this.chData, "chData"); // - // tmrUpdate - // - this.tmrUpdate.Interval = 1; - this.tmrUpdate.Tick += new System.EventHandler(this.ControllerStatusChange); - // // pnlButton // this.pnlButton.BackColor = System.Drawing.SystemColors.Control; @@ -442,7 +436,7 @@ // resources.ApplyResources(this.bnEditC3, "bnEditC3"); this.bnEditC3.Name = "bnEditC3"; - this.bnEditC3.Tag = "2"; + this.bnEditC3.Tag = ""; this.bnEditC3.UseVisualStyleBackColor = true; this.bnEditC3.Click += new System.EventHandler(this.editButtons_Click); // @@ -450,7 +444,7 @@ // resources.ApplyResources(this.bnEditC4, "bnEditC4"); this.bnEditC4.Name = "bnEditC4"; - this.bnEditC4.Tag = "3"; + this.bnEditC4.Tag = ""; this.bnEditC4.UseVisualStyleBackColor = true; this.bnEditC4.Click += new System.EventHandler(this.editButtons_Click); // @@ -483,7 +477,7 @@ // resources.ApplyResources(this.bnEditC2, "bnEditC2"); this.bnEditC2.Name = "bnEditC2"; - this.bnEditC2.Tag = "1"; + this.bnEditC2.Tag = ""; this.bnEditC2.UseVisualStyleBackColor = true; this.bnEditC2.Click += new System.EventHandler(this.editButtons_Click); // @@ -509,7 +503,7 @@ // resources.ApplyResources(this.bnEditC1, "bnEditC1"); this.bnEditC1.Name = "bnEditC1"; - this.bnEditC1.Tag = "0"; + this.bnEditC1.Tag = ""; this.bnEditC1.UseVisualStyleBackColor = true; this.bnEditC1.Click += new System.EventHandler(this.editButtons_Click); // @@ -1265,7 +1259,6 @@ private System.Windows.Forms.ListView lvDebug; private System.Windows.Forms.ColumnHeader chTime; private System.Windows.Forms.ColumnHeader chData; - private System.Windows.Forms.Timer tmrUpdate; private System.Windows.Forms.Panel pnlButton; private System.Windows.Forms.Button btnStartStop; private System.Windows.Forms.Button btnClear; diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 22a860c..a22a5f9 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -91,6 +91,11 @@ namespace DS4Windows { InitializeComponent(); + bnEditC1.Tag = 0; + bnEditC2.Tag = 1; + bnEditC3.Tag = 2; + bnEditC4.Tag = 3; + this.StartWindowsCheckBox.CheckedChanged -= this.StartWindowsCheckBox_CheckedChanged; saveProfiles.Filter = Properties.Resources.XMLFiles + "|*.xml"; @@ -322,7 +327,7 @@ namespace DS4Windows autoProfilesTimer.Interval = 1000; LoadP(); - Global.ControllerStatusChange += ControllerStatusChange; + //Global.ControllerStatusChange += ControllerStatusChange; Global.BatteryStatusChange += BatteryStatusUpdate; Global.ControllerRemoved += ControllerRemovedChange; Global.DeviceStatusChange += DeviceStatusChanged; @@ -420,10 +425,21 @@ namespace DS4Windows UpdateTheUpdater(); - this.StartWindowsCheckBox.CheckedChanged += new System.EventHandler(this.StartWindowsCheckBox_CheckedChanged); + this.StartWindowsCheckBox.CheckedChanged += new EventHandler(this.StartWindowsCheckBox_CheckedChanged); new ToolTip().SetToolTip(StartWindowsCheckBox, Properties.Resources.RunAtStartup); populateHoverTextDict(); + + foreach (Control control in fLPSettings.Controls) + { + if (control.HasChildren) + { + foreach (Control ctrl in control.Controls) + ctrl.MouseHover += Items_MouseHover; + } + + control.MouseHover += Items_MouseHover; + } } private void populateHoverTextDict() @@ -786,9 +802,11 @@ namespace DS4Windows { FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location); string version = fvi.FileVersion; - string newversion = File.ReadAllText(appdatapath + "\\version.txt"); + string newversion = File.ReadAllText(appdatapath + "\\version.txt").Trim(); if (version.Replace(',', '.').CompareTo(newversion) == -1)//CompareVersions(); - if (MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion), Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) + { + if (MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion), + Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { if (!File.Exists(exepath + "\\DS4Updater.exe") || (File.Exists(exepath + "\\DS4Updater.exe") && (FileVersionInfo.GetVersionInfo(exepath + "\\DS4Updater.exe").FileVersion.CompareTo("1.1.0.0") == -1))) @@ -803,17 +821,20 @@ namespace DS4Windows Process.Start("http://23.239.26.40/ds4windows/files/DS4Updater.exe"); } } + Process p = new Process(); p.StartInfo.FileName = exepath + "\\DS4Updater.exe"; if (!cBDownloadLangauge.Checked) p.StartInfo.Arguments = "-skipLang"; if (AdminNeeded()) p.StartInfo.Verb = "runas"; + try { p.Start(); Close(); } catch { } } else File.Delete(appdatapath + "\\version.txt"); + } else File.Delete(appdatapath + "\\version.txt"); } @@ -825,8 +846,11 @@ namespace DS4Windows profilenames.Clear(); string[] profiles = Directory.GetFiles(appdatapath + @"\Profiles\"); foreach (String s in profiles) + { if (s.EndsWith(".xml")) profilenames.Add(Path.GetFileNameWithoutExtension(s)); + } + lBProfiles.Items.Clear(); lBProfiles.Items.AddRange(profilenames.ToArray()); if (lBProfiles.Items.Count == 0) @@ -843,7 +867,9 @@ namespace DS4Windows cbs[i].Items.AddRange(profilenames.ToArray()); foreach (string s in profilenames) shortcuts[i].DropDownItems.Add(s); - for (int j = 0; j < cbs[i].Items.Count; j++) + + for (int j = 0, itemCount = cbs[i].Items.Count; j < itemCount; j++) + { if (cbs[i].Items[j].ToString() == Path.GetFileNameWithoutExtension(ProfilePath[i])) { cbs[i].SelectedIndex = j; @@ -859,6 +885,7 @@ namespace DS4Windows shortcuts[i].Text = Properties.Resources.ContextNew.Replace("*number*", (i + 1).ToString()); ebns[i].Text = Properties.Resources.New; } + } } } catch (DirectoryNotFoundException) @@ -890,7 +917,7 @@ namespace DS4Windows tabAutoProfiles.Controls.Clear(); WP = new WinProgs(profilenames.ToArray(), this); WP.TopLevel = false; - WP.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + WP.FormBorderStyle = FormBorderStyle.None; WP.Visible = true; WP.Dock = DockStyle.Fill; tabAutoProfiles.Controls.Add(WP); @@ -1205,15 +1232,16 @@ namespace DS4Windows } } - protected void ControllerStatusChange(object sender, EventArgs e) + /*protected void ControllerStatusChange(object sender, EventArgs e) { if (InvokeRequired) Invoke(new ControllerStatusChangedDelegate(ControllerStatusChange), new object[] { sender, e }); else ControllerStatusChanged(); } + */ - protected void ControllerStatusChanged() + /*protected void ControllerStatusChanged() { String tooltip = "DS4Windows v" + FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion; bool nocontrollers = true; @@ -1270,15 +1298,23 @@ namespace DS4Windows else notifyIcon1.Text = tooltip; } + */ private void pBStatus_MouseClick(object sender, MouseEventArgs e) { int i = Int32.Parse(((PictureBox)sender).Tag.ToString()); - if (e.Button == System.Windows.Forms.MouseButtons.Right && Program.rootHub.getDS4Status(i) == "BT" && !Program.rootHub.DS4Controllers[i].Charging) - Program.rootHub.DS4Controllers[i].DisconnectBT(); - else if (e.Button == System.Windows.Forms.MouseButtons.Right && Program.rootHub.getDS4Status(i) == "SONYWA" && !Program.rootHub.DS4Controllers[i].Charging) + DS4Device d = Program.rootHub.DS4Controllers[i]; + if (d != null) { - Program.rootHub.DS4Controllers[i].DisconnectDongle(); + if (e.Button == MouseButtons.Right && Program.rootHub.getDS4Status(i) == "BT" && !d.Charging) + { + d.DisconnectBT(); + } + else if (e.Button == MouseButtons.Right && + Program.rootHub.getDS4Status(i) == "SONYWA" && !d.Charging) + { + d.DisconnectDongle(); + } } } @@ -1321,12 +1357,11 @@ namespace DS4Windows { if (e.KeyValue == 13) ShowOptions(4, lBProfiles.SelectedItem.ToString()); - if (e.KeyValue == 46) + else if (e.KeyValue == 46) tsBDeleteProfle_Click(this, e); - if (e.KeyValue == 68 && e.Modifiers == Keys.Control) + else if (e.KeyValue == 68 && e.Modifiers == Keys.Control) tSBDupProfile_Click(this, e); } - } private void assignToController1ToolStripMenuItem_Click(object sender, EventArgs e) @@ -1354,7 +1389,6 @@ namespace DS4Windows ShowOptions(4, ""); } - private void tsBNEditProfile_Click(object sender, EventArgs e) { if (lBProfiles.SelectedIndex >= 0) @@ -1366,9 +1400,11 @@ namespace DS4Windows if (lBProfiles.SelectedIndex >= 0) { string filename = lBProfiles.SelectedItem.ToString(); - if (MessageBox.Show(Properties.Resources.ProfileCannotRestore.Replace("*Profile name*", "\"" + filename + "\""), Properties.Resources.DeleteProfile, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) + if (MessageBox.Show(Properties.Resources.ProfileCannotRestore.Replace("*Profile name*", "\"" + filename + "\""), + Properties.Resources.DeleteProfile, + MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { - System.IO.File.Delete(appdatapath + @"\Profiles\" + filename + ".xml"); + File.Delete(appdatapath + @"\Profiles\" + filename + ".xml"); RefreshProfiles(); } } @@ -1384,7 +1420,7 @@ namespace DS4Windows MTB.TopLevel = false; MTB.Dock = DockStyle.Top; MTB.Visible = true; - MTB.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + MTB.FormBorderStyle = FormBorderStyle.None; tabProfiles.Controls.Add(MTB); lBProfiles.SendToBack(); toolStrip1.SendToBack(); @@ -1394,19 +1430,19 @@ namespace DS4Windows } } - - private void tSBImportProfile_Click(object sender, EventArgs e) { if (appdatapath == Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName) openProfiles.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\DS4Tool" + @"\Profiles\"; else openProfiles.InitialDirectory = Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName + @"\Profiles\"; - if (openProfiles.ShowDialog() == System.Windows.Forms.DialogResult.OK) + + if (openProfiles.ShowDialog() == DialogResult.OK) { string[] files = openProfiles.FileNames; - for (int i = 0; i < files.Length; i++) + for (int i = 0, arlen = files.Length; i < arlen; i++) File.Copy(openProfiles.FileNames[i], appdatapath + "\\Profiles\\" + Path.GetFileName(files[i]), true); + RefreshProfiles(); } } @@ -1417,7 +1453,7 @@ namespace DS4Windows { Stream stream; Stream profile = new StreamReader(appdatapath + "\\Profiles\\" + lBProfiles.SelectedItem.ToString() + ".xml").BaseStream; - if (saveProfiles.ShowDialog() == System.Windows.Forms.DialogResult.OK) + if (saveProfiles.ShowDialog() == DialogResult.OK) { if ((stream = saveProfiles.OpenFile()) != null) { @@ -1432,6 +1468,7 @@ namespace DS4Windows private void ShowOptions(int devID, string profile) { Show(); + tabMain.SelectedIndex = 1; WindowState = FormWindowState.Normal; toolStrip1.Enabled = false; tSOptions.Visible = true; @@ -1448,12 +1485,12 @@ namespace DS4Windows oldsize = Size; { if (Size.Height < (int)(90 * dpiy) + Options.mSize.Height) - Size = new System.Drawing.Size(Size.Width, (int)(90 * dpiy) + Options.mSize.Height); + Size = new Size(Size.Width, (int)(90 * dpiy) + Options.mSize.Height); + if (Size.Width < (int)(20 * dpix) + Options.mSize.Width) - Size = new System.Drawing.Size((int)(20 * dpix) + Options.mSize.Width, Size.Height); + Size = new Size((int)(20 * dpix) + Options.mSize.Width, Size.Height); } - tabMain.SelectedIndex = 1; opt.Reload(devID, profile); opt.inputtimer.Start(); opt.Visible = true; @@ -1487,11 +1524,13 @@ namespace DS4Windows private void editButtons_Click(object sender, EventArgs e) { Button bn = (Button)sender; - int i = Int32.Parse(bn.Tag.ToString()); - if (cbs[i].Text == "(" + Properties.Resources.NoProfileLoaded + ")") - ShowOptions(i, ""); + //int i = Int32.Parse(bn.Tag.ToString()); + int i = Convert.ToInt32(bn.Tag); + string profileText = cbs[i].Text; + if (profileText != "(" + Properties.Resources.NoProfileLoaded + ")") + ShowOptions(i, profileText); else - ShowOptions(i, cbs[i].Text); + ShowOptions(i, ""); } private void editMenu_Click(object sender, EventArgs e) @@ -1505,7 +1544,7 @@ namespace DS4Windows ShowOptions(i, ""); else { - for (int t = 0; t < em.DropDownItems.Count - 2; t++) + for (int t = 0, itemCount = em.DropDownItems.Count - 2; t < itemCount; t++) { if (((ToolStripMenuItem)em.DropDownItems[t]).Checked) ShowOptions(i, ((ToolStripMenuItem)em.DropDownItems[t]).Text); @@ -1515,16 +1554,16 @@ namespace DS4Windows private void lnkControllers_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - System.Diagnostics.Process.Start("control", "joy.cpl"); + Process.Start("control", "joy.cpl"); } private void hideDS4CheckBox_CheckedChanged(object sender, EventArgs e) { // Prevent the Game Controllers window from throwing an error when controllers are un/hidden - System.Diagnostics.Process[] rundll64 = System.Diagnostics.Process.GetProcessesByName("rundll64"); - foreach (System.Diagnostics.Process rundll64Instance in rundll64) + Process[] rundll64 = Process.GetProcessesByName("rundll64"); + foreach (Process rundll64Instance in rundll64) { - foreach (System.Diagnostics.ProcessModule module in rundll64Instance.Modules) + foreach (ProcessModule module in rundll64Instance.Modules) { if (module.FileName.Contains("joy.cpl")) module.Dispose(); @@ -1583,7 +1622,6 @@ namespace DS4Windows } OnDeviceStatusChanged(this, tdevice); //to update profile name in notify icon - //ControllerStatusChanged(); //to update profile name in notify icon } private void Profile_Changed_Menu(object sender, ToolStripItemClickedEventArgs e) @@ -1620,7 +1658,7 @@ namespace DS4Windows private void notifyIcon1_MouseClick(object sender, MouseEventArgs e) { - if (e.Button == System.Windows.Forms.MouseButtons.Middle) + if (e.Button == MouseButtons.Middle) { contextclose = true; this.Close(); @@ -1672,7 +1710,7 @@ namespace DS4Windows private void appShortcutToStartup() { - Type t = Type.GetTypeFromCLSID(new Guid("72C24DD5-D70A-438B-8A42-98424B88AFB8")); //Windows Script Host Shell Object + Type t = Type.GetTypeFromCLSID(new Guid("72C24DD5-D70A-438B-8A42-98424B88AFB8")); // Windows Script Host Shell Object dynamic shell = Activator.CreateInstance(t); try { @@ -1709,23 +1747,18 @@ namespace DS4Windows private void tabMain_SelectedIndexChanged(object sender, EventArgs e) { - lbLastMessage.Visible = tabMain.SelectedTab != tabLog; - if (tabMain.SelectedTab == tabLog) + TabPage currentTab = tabMain.SelectedTab; + lbLastMessage.Visible = currentTab != tabLog; + if (currentTab == tabLog) chData.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); - if (tabMain.SelectedTab == tabSettings) + + if (currentTab == tabSettings) { lbLastMessage.ForeColor = SystemColors.GrayText; lbLastMessage.Text = Properties.Resources.HoverOverItems; - foreach (System.Windows.Forms.Control control in fLPSettings.Controls) - { - if (control.HasChildren) - foreach (System.Windows.Forms.Control ctrl in control.Controls) - ctrl.MouseHover += Items_MouseHover; - control.MouseHover += Items_MouseHover; - } } else if (lvDebug.Items.Count > 0) - lbLastMessage.Text = lbLastMessage.Text = lvDebug.Items[lvDebug.Items.Count - 1].SubItems[1].Text; + lbLastMessage.Text = lvDebug.Items[lvDebug.Items.Count - 1].SubItems[1].Text; else lbLastMessage.Text = ""; @@ -1772,7 +1805,7 @@ namespace DS4Windows private void lBProfiles_MouseDown(object sender, MouseEventArgs e) { lBProfiles.SelectedIndex = lBProfiles.IndexFromPoint(e.X, e.Y); - if (e.Button == System.Windows.Forms.MouseButtons.Right) + if (e.Button == MouseButtons.Right) { if (lBProfiles.SelectedIndex < 0) { @@ -1797,6 +1830,7 @@ namespace DS4Windows assignToController2ToolStripMenuItem, assignToController3ToolStripMenuItem, assignToController4ToolStripMenuItem }; + for (int i = 0; i < 4; i++) { if (lBProfiles.SelectedIndex == cbs[i].SelectedIndex) @@ -1804,6 +1838,7 @@ namespace DS4Windows else assigns[i].Checked = false; } + deleteToolStripMenuItem.Visible = true; editToolStripMenuItem.Visible = true; duplicateToolStripMenuItem.Visible = true; @@ -1837,14 +1872,17 @@ namespace DS4Windows e.Effect = DragDropEffects.None; // Unknown data, ignore it } - - private void tBProfile_TextChanged(object sender, EventArgs e) { - if (tSTBProfile.Text != null && tSTBProfile.Text != "" && !tSTBProfile.Text.Contains("\\") && !tSTBProfile.Text.Contains("/") && !tSTBProfile.Text.Contains(":") && !tSTBProfile.Text.Contains("*") && !tSTBProfile.Text.Contains("?") && !tSTBProfile.Text.Contains("\"") && !tSTBProfile.Text.Contains("<") && !tSTBProfile.Text.Contains(">") && !tSTBProfile.Text.Contains("|")) - tSTBProfile.ForeColor = System.Drawing.SystemColors.WindowText; + if (tSTBProfile.Text != null && tSTBProfile.Text != "" && + !tSTBProfile.Text.Contains("\\") && !tSTBProfile.Text.Contains("/") && + !tSTBProfile.Text.Contains(":") && !tSTBProfile.Text.Contains("*") && + !tSTBProfile.Text.Contains("?") && !tSTBProfile.Text.Contains("\"") && + !tSTBProfile.Text.Contains("<") && !tSTBProfile.Text.Contains(">") && + !tSTBProfile.Text.Contains("|")) + tSTBProfile.ForeColor = SystemColors.WindowText; else - tSTBProfile.ForeColor = System.Drawing.SystemColors.GrayText; + tSTBProfile.ForeColor = SystemColors.GrayText; } private void tBProfile_Enter(object sender, EventArgs e) @@ -1872,7 +1910,12 @@ namespace DS4Windows opt.saving = true; opt.Set(); - if (tSTBProfile.Text != null && tSTBProfile.Text != "" && !tSTBProfile.Text.Contains("\\") && !tSTBProfile.Text.Contains("/") && !tSTBProfile.Text.Contains(":") && !tSTBProfile.Text.Contains("*") && !tSTBProfile.Text.Contains("?") && !tSTBProfile.Text.Contains("\"") && !tSTBProfile.Text.Contains("<") && !tSTBProfile.Text.Contains(">") && !tSTBProfile.Text.Contains("|")) + if (tSTBProfile.Text != null && tSTBProfile.Text != "" && + !tSTBProfile.Text.Contains("\\") && !tSTBProfile.Text.Contains("/") && + !tSTBProfile.Text.Contains(":") && !tSTBProfile.Text.Contains("*") && + !tSTBProfile.Text.Contains("?") && !tSTBProfile.Text.Contains("\"") && + !tSTBProfile.Text.Contains("<") && !tSTBProfile.Text.Contains(">") && + !tSTBProfile.Text.Contains("|")) { File.Delete(appdatapath + @"\Profiles\" + opt.filename + ".xml"); ProfilePath[opt.device] = tSTBProfile.Text; @@ -1911,15 +1954,18 @@ namespace DS4Windows private void nUDUpdateTime_ValueChanged(object sender, EventArgs e) { - if (cBUpdateTime.SelectedIndex == 0) + int currentIndex = cBUpdateTime.SelectedIndex; + if (currentIndex == 0) CheckWhen = (int)nUDUpdateTime.Value; - else if (cBUpdateTime.SelectedIndex == 1) + else if (currentIndex == 1) CheckWhen = (int)nUDUpdateTime.Value * 24; + if (nUDUpdateTime.Value < 1) cBUpdate.Checked = false; + if (nUDUpdateTime.Value == 1) { - int index = cBUpdateTime.SelectedIndex; + int index = currentIndex; cBUpdateTime.Items.Clear(); cBUpdateTime.Items.Add(Properties.Resources.Hour); cBUpdateTime.Items.Add(Properties.Resources.Day); @@ -1927,7 +1973,7 @@ namespace DS4Windows } else if (cBUpdateTime.Items[0].ToString() == Properties.Resources.Hour) { - int index = cBUpdateTime.SelectedIndex; + int index = currentIndex; cBUpdateTime.Items.Clear(); cBUpdateTime.Items.Add(Properties.Resources.Hours); cBUpdateTime.Items.Add(Properties.Resources.Days); @@ -1937,15 +1983,17 @@ namespace DS4Windows private void cBUpdateTime_SelectedIndexChanged(object sender, EventArgs e) { - if (cBUpdateTime.SelectedIndex == 0) + int index = cBUpdateTime.SelectedIndex; + if (index == 0) CheckWhen = (int)nUDUpdateTime.Value; - else if (cBUpdateTime.SelectedIndex == 1) + else if (index == 1) CheckWhen = (int)nUDUpdateTime.Value * 24; } private void lLBUpdate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - Uri url = new Uri("http://23.236.26.40/ds4windows/files/builds/newest.txt"); //Sorry other devs, gonna have to find your own server + // Sorry other devs, gonna have to find your own server + Uri url = new Uri("http://23.236.26.40/ds4windows/files/builds/newest.txt"); WebClient wct = new WebClient(); wct.DownloadFileAsync(url, appdatapath + "\\version.txt"); wct.DownloadFileCompleted += wct_DownloadFileCompleted; @@ -1963,7 +2011,9 @@ namespace DS4Windows string version2 = fvi.FileVersion; string newversion2 = File.ReadAllText(appdatapath + "\\version.txt"); if (version2.Replace(',', '.').CompareTo(File.ReadAllText(appdatapath + "\\version.txt")) == -1)//CompareVersions(); - if (MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion2), Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) + { + if (MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion2), + Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { if (!File.Exists(exepath + "\\DS4Updater.exe") || (File.Exists(exepath + "\\DS4Updater.exe") && (FileVersionInfo.GetVersionInfo(exepath + "\\DS4Updater.exe").FileVersion.CompareTo("1.1.0.0") == -1))) @@ -1978,17 +2028,21 @@ namespace DS4Windows Process.Start("http://ds4windows.com/Files/DS4Updater.exe"); } } + Process p = new Process(); p.StartInfo.FileName = exepath + "\\DS4Updater.exe"; if (!cBDownloadLangauge.Checked) p.StartInfo.Arguments = "-skipLang"; + if (AdminNeeded()) p.StartInfo.Verb = "runas"; + try { p.Start(); Close(); } catch { } } else File.Delete(appdatapath + "\\version.txt"); + } else { File.Delete(appdatapath + "\\version.txt"); @@ -1998,19 +2052,16 @@ namespace DS4Windows private void linkProfiles_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - System.Diagnostics.Process.Start(appdatapath + "\\Profiles"); + Process.Start(appdatapath + "\\Profiles"); } private void linkUninstall_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (File.Exists(appdatapath + "\\Virtual Bus Driver\\ScpDriver.exe")) - try { System.Diagnostics.Process.Start(appdatapath + "\\Virtual Bus Driver\\ScpDriver.exe"); } - catch { System.Diagnostics.Process.Start(appdatapath + "\\Virtual Bus Driver"); } - } - - private void cBNotifications_CheckedChanged(object sender, EventArgs e) - { - //Notifications = cBNotifications.Checked; + { + try { Process.Start(appdatapath + "\\Virtual Bus Driver\\ScpDriver.exe"); } + catch { Process.Start(appdatapath + "\\Virtual Bus Driver"); } + } } private void cBoxNotifications_SelectedIndexChanged(object sender, EventArgs e) @@ -2056,7 +2107,7 @@ namespace DS4Windows DS4LightBar.shuttingdown = true; } - if (oldsize == new System.Drawing.Size(0, 0)) + if (oldsize == new Size(0, 0)) { FormWidth = this.Width; FormHeight = this.Height; @@ -2067,7 +2118,7 @@ namespace DS4Windows FormHeight = oldsize.Height; } - if (!String.IsNullOrEmpty(appdatapath)) + if (!string.IsNullOrEmpty(appdatapath)) { Save(); blankControllerTab(); @@ -2109,6 +2160,7 @@ namespace DS4Windows { //oldxiport = (int)Math.Round(nUDXIPorts.Value,0); } + int oldxiport; private void pnlXIPorts_MouseLeave(object sender, EventArgs e) { @@ -2146,9 +2198,10 @@ namespace DS4Windows { Label lb = (Label)sender; int i = Int32.Parse(lb.Tag.ToString()); - if (Program.rootHub.DS4Controllers[i] != null && Program.rootHub.DS4Controllers[i].ConnectionType == ConnectionType.BT) + DS4Device d = Program.rootHub.DS4Controllers[i]; + if (d != null && d.ConnectionType == ConnectionType.BT) { - double latency = Program.rootHub.DS4Controllers[i].Latency; + double latency = d.Latency; toolTip1.Hide(Pads[i]); toolTip1.Show(Properties.Resources.InputDelay.Replace("*number*", latency.ToString()), lb, lb.Size.Width, 0); } diff --git a/DS4Windows/DS4Forms/DS4Form.resx b/DS4Windows/DS4Forms/DS4Form.resx index a53442c..bcbcbcb 100644 --- a/DS4Windows/DS4Forms/DS4Form.resx +++ b/DS4Windows/DS4Forms/DS4Form.resx @@ -117,6 +117,19 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Time + + + + 167 + + + Data + + + 84 + Fill @@ -131,7 +144,6 @@ 890, 330 - 0 @@ -147,93 +159,6 @@ 0 - - Time - - - 167 - - - Data - - - 84 - - - 153, 17 - - - llbHelp - - - System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pnlButton - - - 0 - - - lbTest - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pnlButton - - - 1 - - - btnStartStop - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pnlButton - - - 2 - - - lbLastMessage - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pnlButton - - - 3 - - - Bottom - - - 0, 385 - - - 904, 30 - - - 10 - - - pnlButton - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 4 - Bottom, Right @@ -363,6 +288,30 @@ 3 + + Bottom + + + 0, 385 + + + 904, 30 + + + 10 + + + pnlButton + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 4 + Bottom @@ -402,21 +351,6 @@ 377, 17 - - 215, 164 - - - cMTaskbar - - - System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - DS4 Xinput Tool - - - True - 214, 22 @@ -465,6 +399,21 @@ Exit (Middle Mouse) + + 215, 164 + + + cMTaskbar + + + System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + DS4 Xinput Tool + + + True + 211, 6 @@ -474,6 +423,24 @@ XML Files (*.xml)|*.xml + + Top + + + NoControl + + + 0, 127 + + + 896, 23 + + + 48 + + + Connect DS4 exclusivly (experimental) + btnConnectDS4Win10 @@ -486,6 +453,915 @@ 0 + + True + + + 6 + + + Fill + + + Flat + + + NoControl + + + 815, 74 + + + 78, 22 + + + 50 + + + bnLight3 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 0 + + + None + + + NoControl + + + 387, 19 + + + 39, 20 + + + AutoSize + + + 47 + + + pBStatus1 + + + System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 1 + + + Left + + + True + + + Microsoft Sans Serif, 9pt + + + NoControl + + + 3, 21 + + + 111, 15 + + + 44 + + + MA:C1:23:45:67:89 + + + lbPad1 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 2 + + + Left + + + True + + + Microsoft Sans Serif, 9pt + + + NoControl + + + 3, 49 + + + 70, 15 + + + 44 + + + Controller 2 + + + lbPad2 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 3 + + + Left + + + NoControl + + + 772, 74 + + + 37, 22 + + + 43 + + + Edit + + + bnEditC3 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 4 + + + Left + + + NoControl + + + 772, 102 + + + 37, 22 + + + 43 + + + Edit + + + bnEditC4 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 5 + + + Left + + + True + + + Microsoft Sans Serif, 9pt + + + NoControl + + + 3, 77 + + + 70, 15 + + + 44 + + + Controller 3 + + + lbPad3 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 6 + + + Left + + + True + + + Microsoft Sans Serif, 9pt + + + NoControl + + + 3, 105 + + + 70, 15 + + + 44 + + + Controller 4 + + + lbPad4 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 7 + + + None + + + 655, 18 + + + 111, 21 + + + 42 + + + cBController1 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 8 + + + Left + + + NoControl + + + 772, 46 + + + 37, 22 + + + 43 + + + Edit + + + bnEditC2 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 9 + + + None + + + 655, 46 + + + 111, 21 + + + 42 + + + cBController2 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 10 + + + None + + + 655, 74 + + + 111, 21 + + + 42 + + + cBController3 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 11 + + + Left + + + NoControl + + + 772, 18 + + + 37, 22 + + + 43 + + + Edit + + + bnEditC1 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 12 + + + None + + + 655, 102 + + + 111, 21 + + + 42 + + + cBController4 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 13 + + + None + + + True + + + Microsoft Sans Serif, 9pt, style=Bold + + + NoControl + + + 656, 0 + + + 109, 15 + + + 45 + + + Selected Profile + + + lbSelectedProfile + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 14 + + + Left + + + True + + + Microsoft Sans Serif, 9pt, style=Bold + + + NoControl + + + 3, 0 + + + 21, 15 + + + 45 + + + ID + + + lbID + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 15 + + + None + + + True + + + Microsoft Sans Serif, 9pt, style=Bold + + + NoControl + + + 383, 0 + + + 47, 15 + + + 45 + + + Status + + + lbStatus + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 16 + + + None + + + True + + + Microsoft Sans Serif, 9pt, style=Bold + + + NoControl + + + 547, 0 + + + 51, 15 + + + 45 + + + Battery + + + lbBattery + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 17 + + + None + + + True + + + Microsoft Sans Serif, 9pt + + + NoControl + + + 553, 21 + + + 39, 15 + + + 44 + + + 100% + + + lbBatt1 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 18 + + + None + + + True + + + Microsoft Sans Serif, 9pt + + + NoControl + + + 553, 49 + + + 39, 15 + + + 44 + + + 100% + + + lbBatt2 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 19 + + + None + + + True + + + Microsoft Sans Serif, 9pt + + + NoControl + + + 553, 77 + + + 39, 15 + + + 44 + + + 100% + + + lbBatt3 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 20 + + + None + + + True + + + Microsoft Sans Serif, 9pt + + + NoControl + + + 553, 105 + + + 39, 15 + + + 44 + + + 100% + + + lbBatt4 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 21 + + + None + + + NoControl + + + 387, 47 + + + 39, 20 + + + AutoSize + + + 47 + + + pBStatus2 + + + System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 22 + + + None + + + NoControl + + + 387, 75 + + + 39, 20 + + + AutoSize + + + 47 + + + pBStatus3 + + + System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 23 + + + None + + + NoControl + + + 387, 103 + + + 39, 20 + + + AutoSize + + + 47 + + + pBStatus4 + + + System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 24 + + + Fill + + + Flat + + + NoControl + + + 815, 18 + + + 78, 22 + + + 50 + + + bnLight1 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 25 + + + Fill + + + Flat + + + NoControl + + + 815, 46 + + + 78, 22 + + + 51 + + + bnLight2 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 26 + + + Fill + + + Flat + + + NoControl + + + 815, 102 + + + 78, 22 + + + 52 + + + bnLight4 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tLPControllers + + + 27 + + + Top + + + 0, 0 + + + 5 + + + 896, 127 + + + 46 + tLPControllers @@ -499,7 +1375,31 @@ 1 - <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="bnLight3" Row="3" RowSpan="1" Column="5" 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="4" ColumnSpan="1" /><Control Name="bnEditC4" Row="4" RowSpan="1" Column="4" 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="3" ColumnSpan="1" /><Control Name="bnEditC2" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController2" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="cBController3" Row="3" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="bnEditC1" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController4" Row="4" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="lbSelectedProfile" Row="0" RowSpan="1" Column="3" 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="5" ColumnSpan="1" /><Control Name="bnLight2" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="bnLight4" Row="4" RowSpan="1" Column="5" ColumnSpan="1" /></Controls><Columns Styles="Percent,48.95498,Percent,26.82658,Percent,24.21844,AutoSize,0,AutoSize,0,Absolute,80" /><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="5" 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="4" ColumnSpan="1" /><Control Name="bnEditC4" Row="4" RowSpan="1" Column="4" 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="3" ColumnSpan="1" /><Control Name="bnEditC2" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController2" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="cBController3" Row="3" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="bnEditC1" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController4" Row="4" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="lbSelectedProfile" Row="0" RowSpan="1" Column="3" 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="5" ColumnSpan="1" /><Control Name="bnLight2" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="bnLight4" Row="4" RowSpan="1" Column="5" ColumnSpan="1" /></Controls><Columns Styles="Percent,48.95498,Percent,26.82658,Percent,24.21844,AutoSize,0,AutoSize,0,Absolute,83" /><Rows Styles="AutoSize,0,Percent,25,Percent,25,Percent,25,Percent,25" /></TableLayoutSettings> + + + Fill + + + False + + + NoControl + + + 0, 0 + + + 896, 359 + + + 47 + + + No Controllers Connected (Max 4) + + + MiddleCenter lbNoControllers @@ -537,12 +1437,99 @@ 0 - - 17, 56 - - - 606, 17 + + 826, 17 + + Segoe UI, 9pt, style=Bold + + + 188, 22 + + + Edit + + + 188, 22 + + + Assign to Controller 1 + + + 188, 22 + + + Assign to Controller 2 + + + 188, 22 + + + Assign to Controller 3 + + + 188, 22 + + + Assign to Controller 4 + + + 188, 22 + + + Delete (Del) + + + 188, 22 + + + Duplicate (Ctrl+D) + + + 188, 22 + + + New Profile + + + 188, 22 + + + Import + + + 188, 22 + + + Export + + + 189, 224 + + + cMProfile + + + System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Fill + + + Microsoft Sans Serif, 9.75pt + + + 16 + + + 3, 57 + + + 890, 299 + + + 0 + lBProfiles @@ -555,6 +1542,63 @@ 0 + + 17, 56 + + + 79, 24 + + + Profile Name: + + + 150, 27 + + + <type profile name here> + + + Magenta + + + 92, 24 + + + Save Profile + + + Magenta + + + 67, 24 + + + Cancel + + + 6, 27 + + + Magenta + + + 214, 24 + + + Keep this window size after closing + + + 3, 30 + + + 890, 27 + + + 2 + + + Profile Options + tSOptions @@ -567,6 +1611,108 @@ 1 + + 606, 17 + + + Magenta + + + 55, 24 + + + New + + + Make a New Profile + + + False + + + Magenta + + + 51, 24 + + + Edit + + + Edit Selected Profile (Enter) + + + False + + + Magenta + + + 64, 24 + + + Delete + + + Delete Selected Profle (Delete) + + + False + + + Magenta + + + 81, 24 + + + Duplicate + + + Dupliacate Selected Profile (Ctrl+D) + + + False + + + Magenta + + + 67, 24 + + + Import + + + Import Profile or Profiles + + + False + + + Magenta + + + 64, 24 + + + Export + + + Export Selected Profile + + + 3, 3 + + + 890, 27 + + + 1 + + + toolStrip1 + toolStrip1 @@ -891,6 +2037,24 @@ 4 + + True + + + NoControl + + + 3, 4 + + + 95, 13 + + + 45 + + + Show Notifications + lbNotifications @@ -903,6 +2067,27 @@ 0 + + Top, Right + + + None + + + Warnings only + + + All + + + 104, 1 + + + 106, 21 + + + 44 + cBoxNotifications @@ -966,6 +2151,18 @@ 6 + + Top, Right + + + 185, 2 + + + 44, 20 + + + 42 + nUDLatency @@ -978,6 +2175,27 @@ 0 + + Top, Right + + + True + + + NoControl + + + 235, 4 + + + 20, 13 + + + 0 + + + ms + lbMsLatency @@ -990,6 +2208,24 @@ 1 + + True + + + NoControl + + + 0, 3 + + + 170, 17 + + + 53 + + + Flash Lightbar at High Latency + cBFlashWhenLate @@ -1176,2082 +2412,6 @@ 12 - - cBUpdateTime - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pNUpdate - - - 0 - - - lbCheckEvery - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pNUpdate - - - 1 - - - nUDUpdateTime - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pNUpdate - - - 2 - - - False - - - 274, 56 - - - 189, 22 - - - 43 - - - pNUpdate - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - fLPSettings - - - 13 - - - lbUseXIPorts - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pnlXIPorts - - - 0 - - - nUDXIPorts - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pnlXIPorts - - - 1 - - - lbLastXIPort - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pnlXIPorts - - - 2 - - - 274, 84 - - - 186, 22 - - - 44 - - - pnlXIPorts - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - fLPSettings - - - 14 - - - True - - - linkProfiles - - - System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - flowLayoutPanel1 - - - 0 - - - lnkControllers - - - System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - flowLayoutPanel1 - - - 1 - - - linkUninstall - - - System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - flowLayoutPanel1 - - - 2 - - - linkSetup - - - System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - flowLayoutPanel1 - - - 3 - - - lLBUpdate - - - System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - flowLayoutPanel1 - - - 4 - - - TopDown - - - 274, 112 - - - 122, 65 - - - 56 - - - flowLayoutPanel1 - - - System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - fLPSettings - - - 15 - - - Fill - - - TopDown - - - 3, 3 - - - 7, 7, 0, 9 - - - 890, 353 - - - 0 - - - fLPSettings - - - System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabSettings - - - 0 - - - 4, 22 - - - 3, 3, 3, 3 - - - 896, 359 - - - 4 - - - Settings - - - tabSettings - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabMain - - - 3 - - - 4, 22 - - - 3, 3, 3, 3 - - - 896, 359 - - - 1 - - - Log - - - tabLog - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabMain - - - 4 - - - Fill - - - 0, 0 - - - 904, 385 - - - 12 - - - tabMain - - - System.Windows.Forms.TabControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 3 - - - Top - - - NoControl - - - 0, 127 - - - 896, 23 - - - 48 - - - Connect DS4 exclusivly (experimental) - - - btnConnectDS4Win10 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabControllers - - - 0 - - - True - - - 6 - - - bnLight3 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 0 - - - pBStatus1 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 1 - - - lbPad1 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 2 - - - lbPad2 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 3 - - - bnEditC3 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 4 - - - bnEditC4 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 5 - - - lbPad3 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 6 - - - lbPad4 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 7 - - - cBController1 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 8 - - - bnEditC2 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 9 - - - cBController2 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 10 - - - cBController3 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 11 - - - bnEditC1 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 12 - - - cBController4 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 13 - - - lbSelectedProfile - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 14 - - - lbID - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 15 - - - lbStatus - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 16 - - - lbBattery - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 17 - - - lbBatt1 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 18 - - - lbBatt2 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 19 - - - lbBatt3 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 20 - - - lbBatt4 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 21 - - - pBStatus2 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 22 - - - pBStatus3 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 23 - - - pBStatus4 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 24 - - - bnLight1 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 25 - - - bnLight2 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 26 - - - bnLight4 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 27 - - - Top - - - 0, 0 - - - 5 - - - 896, 127 - - - 46 - - - tLPControllers - - - System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabControllers - - - 1 - - - <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="bnLight3" Row="3" RowSpan="1" Column="5" 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="4" ColumnSpan="1" /><Control Name="bnEditC4" Row="4" RowSpan="1" Column="4" 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="3" ColumnSpan="1" /><Control Name="bnEditC2" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController2" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="cBController3" Row="3" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="bnEditC1" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController4" Row="4" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="lbSelectedProfile" Row="0" RowSpan="1" Column="3" 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="5" ColumnSpan="1" /><Control Name="bnLight2" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="bnLight4" Row="4" RowSpan="1" Column="5" ColumnSpan="1" /></Controls><Columns Styles="Percent,48.95498,Percent,26.82658,Percent,24.21844,AutoSize,0,AutoSize,0,Absolute,80" /><Rows Styles="AutoSize,0,Percent,25,Percent,25,Percent,25,Percent,25" /></TableLayoutSettings> - - - Fill - - - Flat - - - NoControl - - - 817, 74 - - - 76, 22 - - - 50 - - - bnLight3 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 0 - - - None - - - NoControl - - - 389, 19 - - - 39, 20 - - - AutoSize - - - 47 - - - pBStatus1 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 1 - - - Left - - - True - - - Microsoft Sans Serif, 9pt - - - NoControl - - - 3, 21 - - - 111, 15 - - - 44 - - - MA:C1:23:45:67:89 - - - lbPad1 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 2 - - - Left - - - True - - - Microsoft Sans Serif, 9pt - - - NoControl - - - 3, 49 - - - 70, 15 - - - 44 - - - Controller 2 - - - lbPad2 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 3 - - - Left - - - NoControl - - - 774, 74 - - - 37, 22 - - - 43 - - - Edit - - - bnEditC3 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 4 - - - Left - - - NoControl - - - 774, 102 - - - 37, 22 - - - 43 - - - Edit - - - bnEditC4 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 5 - - - Left - - - True - - - Microsoft Sans Serif, 9pt - - - NoControl - - - 3, 77 - - - 70, 15 - - - 44 - - - Controller 3 - - - lbPad3 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 6 - - - Left - - - True - - - Microsoft Sans Serif, 9pt - - - NoControl - - - 3, 105 - - - 70, 15 - - - 44 - - - Controller 4 - - - lbPad4 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 7 - - - None - - - 657, 18 - - - 111, 21 - - - 42 - - - cBController1 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 8 - - - Left - - - NoControl - - - 774, 46 - - - 37, 22 - - - 43 - - - Edit - - - bnEditC2 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 9 - - - None - - - 657, 46 - - - 111, 21 - - - 42 - - - cBController2 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 10 - - - None - - - 657, 74 - - - 111, 21 - - - 42 - - - cBController3 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 11 - - - Left - - - NoControl - - - 774, 18 - - - 37, 22 - - - 43 - - - Edit - - - bnEditC1 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 12 - - - None - - - 657, 102 - - - 111, 21 - - - 42 - - - cBController4 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 13 - - - None - - - True - - - Microsoft Sans Serif, 9pt, style=Bold - - - NoControl - - - 658, 0 - - - 109, 15 - - - 45 - - - Selected Profile - - - lbSelectedProfile - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 14 - - - Left - - - True - - - Microsoft Sans Serif, 9pt, style=Bold - - - NoControl - - - 3, 0 - - - 21, 15 - - - 45 - - - ID - - - lbID - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 15 - - - None - - - True - - - Microsoft Sans Serif, 9pt, style=Bold - - - NoControl - - - 385, 0 - - - 47, 15 - - - 45 - - - Status - - - lbStatus - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 16 - - - None - - - True - - - Microsoft Sans Serif, 9pt, style=Bold - - - NoControl - - - 549, 0 - - - 51, 15 - - - 45 - - - Battery - - - lbBattery - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 17 - - - None - - - True - - - Microsoft Sans Serif, 9pt - - - NoControl - - - 555, 21 - - - 39, 15 - - - 44 - - - 100% - - - lbBatt1 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 18 - - - None - - - True - - - Microsoft Sans Serif, 9pt - - - NoControl - - - 555, 49 - - - 39, 15 - - - 44 - - - 100% - - - lbBatt2 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 19 - - - None - - - True - - - Microsoft Sans Serif, 9pt - - - NoControl - - - 555, 77 - - - 39, 15 - - - 44 - - - 100% - - - lbBatt3 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 20 - - - None - - - True - - - Microsoft Sans Serif, 9pt - - - NoControl - - - 555, 105 - - - 39, 15 - - - 44 - - - 100% - - - lbBatt4 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 21 - - - None - - - NoControl - - - 389, 47 - - - 39, 20 - - - AutoSize - - - 47 - - - pBStatus2 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 22 - - - None - - - NoControl - - - 389, 75 - - - 39, 20 - - - AutoSize - - - 47 - - - pBStatus3 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 23 - - - None - - - NoControl - - - 389, 103 - - - 39, 20 - - - AutoSize - - - 47 - - - pBStatus4 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 24 - - - Fill - - - Flat - - - NoControl - - - 817, 18 - - - 76, 22 - - - 50 - - - bnLight1 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 25 - - - Fill - - - Flat - - - NoControl - - - 817, 46 - - - 76, 22 - - - 51 - - - bnLight2 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 26 - - - Fill - - - Flat - - - NoControl - - - 817, 102 - - - 76, 22 - - - 52 - - - bnLight4 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tLPControllers - - - 27 - - - Fill - - - False - - - NoControl - - - 0, 0 - - - 896, 359 - - - 47 - - - No Controllers Connected (Max 4) - - - MiddleCenter - - - lbNoControllers - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabControllers - - - 2 - - - 826, 17 - - - 189, 224 - - - cMProfile - - - System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Fill - - - Microsoft Sans Serif, 9.75pt - - - 16 - - - 3, 57 - - - 890, 299 - - - 0 - - - lBProfiles - - - System.Windows.Forms.ListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabProfiles - - - 0 - - - Segoe UI, 9pt, style=Bold - - - 188, 22 - - - Edit - - - 188, 22 - - - Assign to Controller 1 - - - 188, 22 - - - Assign to Controller 2 - - - 188, 22 - - - Assign to Controller 3 - - - 188, 22 - - - Assign to Controller 4 - - - 188, 22 - - - Delete (Del) - - - 188, 22 - - - Duplicate (Ctrl+D) - - - 188, 22 - - - New Profile - - - 188, 22 - - - Import - - - 188, 22 - - - Export - - - 17, 56 - - - 3, 30 - - - 890, 27 - - - 2 - - - Profile Options - - - tSOptions - - - System.Windows.Forms.ToolStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabProfiles - - - 1 - - - 79, 24 - - - Profile Name: - - - 150, 27 - - - <type profile name here> - - - Magenta - - - 92, 24 - - - Save Profile - - - Magenta - - - 67, 24 - - - Cancel - - - 6, 27 - - - Magenta - - - 214, 24 - - - Keep this window size after closing - - - 606, 17 - - - 3, 3 - - - 890, 27 - - - 1 - - - toolStrip1 - - - toolStrip1 - - - System.Windows.Forms.ToolStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabProfiles - - - 2 - - - Magenta - - - 55, 24 - - - New - - - Make a New Profile - - - False - - - Magenta - - - 51, 24 - - - Edit - - - Edit Selected Profile (Enter) - - - False - - - Magenta - - - 64, 24 - - - Delete - - - Delete Selected Profle (Delete) - - - False - - - Magenta - - - 81, 24 - - - Duplicate - - - Dupliacate Selected Profile (Ctrl+D) - - - False - - - Magenta - - - 67, 24 - - - Import - - - Import Profile or Profiles - - - False - - - Magenta - - - 64, 24 - - - Export - - - Export Selected Profile - - - True - - - NoControl - - - 3, 4 - - - 95, 13 - - - 45 - - - Show Notifications - - - lbNotifications - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 0 - - - Top, Right - - - None - - - Warnings only - - - All - - - 104, 1 - - - 106, 21 - - - 44 - - - cBoxNotifications - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 1 - - - Top, Right - - - 185, 2 - - - 44, 20 - - - 42 - - - nUDLatency - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel2 - - - 0 - - - Top, Right - - - True - - - NoControl - - - 235, 4 - - - 20, 13 - - - 0 - - - ms - - - lbMsLatency - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel2 - - - 1 - - - True - - - NoControl - - - 0, 3 - - - 170, 17 - - - 53 - - - Flash Lightbar at High Latency - - - cBFlashWhenLate - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel2 - - - 2 - Top, Right @@ -3339,6 +2499,30 @@ 2 + + False + + + 274, 56 + + + 189, 22 + + + 43 + + + pNUpdate + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + fLPSettings + + + 13 + Left @@ -3429,6 +2613,30 @@ 2 + + 274, 84 + + + 186, 22 + + + 44 + + + pnlXIPorts + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + fLPSettings + + + 14 + + + True + True @@ -3585,6 +2793,138 @@ 4 + + TopDown + + + 274, 112 + + + 122, 65 + + + 56 + + + flowLayoutPanel1 + + + System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + fLPSettings + + + 15 + + + Fill + + + TopDown + + + 3, 3 + + + 7, 7, 0, 9 + + + 890, 353 + + + 0 + + + fLPSettings + + + System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tabSettings + + + 0 + + + 4, 22 + + + 3, 3, 3, 3 + + + 896, 359 + + + 4 + + + Settings + + + tabSettings + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tabMain + + + 3 + + + 4, 22 + + + 3, 3, 3, 3 + + + 896, 359 + + + 1 + + + Log + + + tabLog + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tabMain + + + 4 + + + Fill + + + 0, 0 + + + 904, 385 + + + 12 + + + tabMain + + + System.Windows.Forms.TabControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 3 + 711, 17 @@ -3597,15 +2937,6 @@ 220, 56 - - 171, 48 - - - cMCustomLed - - - System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - 170, 22 @@ -3618,6 +2949,15 @@ Use Custom Color + + 171, 48 + + + cMCustomLed + + + System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 17, 17 @@ -3633,9 +2973,6 @@ 904, 415 - - NoControl - 459, 229 @@ -3654,12 +2991,6 @@ System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - tmrUpdate - - - System.Windows.Forms.Timer, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - notifyIcon1 @@ -3886,7 +3217,7 @@ advColorDialog - DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.4.67.0, Culture=neutral, PublicKeyToken=null + DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.4.70.0, Culture=neutral, PublicKeyToken=null DS4Form