Add Open Program Folder link in taskbar

Related to issue #187.
This commit is contained in:
Travis Nickles 2018-01-26 16:03:14 -06:00
parent 710c820539
commit 36fc8a7223
3 changed files with 1789 additions and 2488 deletions

View File

@ -152,10 +152,11 @@
this.lnkControllers = new System.Windows.Forms.LinkLabel(); this.lnkControllers = new System.Windows.Forms.LinkLabel();
this.linkUninstall = new System.Windows.Forms.LinkLabel(); this.linkUninstall = new System.Windows.Forms.LinkLabel();
this.linkSetup = new System.Windows.Forms.LinkLabel(); this.linkSetup = new System.Windows.Forms.LinkLabel();
this.lLBUpdate = new System.Windows.Forms.LinkLabel();
this.linkSplitLabel = new System.Windows.Forms.Label();
this.hidGuardWhiteList = new System.Windows.Forms.LinkLabel(); this.hidGuardWhiteList = new System.Windows.Forms.LinkLabel();
this.clrHidGuardWlistLinkLabel = new System.Windows.Forms.LinkLabel(); this.clrHidGuardWlistLinkLabel = new System.Windows.Forms.LinkLabel();
this.hidGuardRegLinkLabel = new System.Windows.Forms.LinkLabel(); this.hidGuardRegLinkLabel = new System.Windows.Forms.LinkLabel();
this.lLBUpdate = new System.Windows.Forms.LinkLabel();
this.tabLog = new System.Windows.Forms.TabPage(); this.tabLog = new System.Windows.Forms.TabPage();
this.panel3 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel();
this.exportLogTxtBtn = new System.Windows.Forms.Button(); this.exportLogTxtBtn = new System.Windows.Forms.Button();
@ -166,7 +167,7 @@
this.useProfileColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.useProfileColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.useCustomColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.useCustomColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.advColorDialog = new DS4Windows.AdvancedColorDialog(); this.advColorDialog = new DS4Windows.AdvancedColorDialog();
this.linkSplitLabel = new System.Windows.Forms.Label(); this.openProgramFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pnlButton.SuspendLayout(); this.pnlButton.SuspendLayout();
this.cMTaskbar.SuspendLayout(); this.cMTaskbar.SuspendLayout();
this.tabMain.SuspendLayout(); this.tabMain.SuspendLayout();
@ -274,6 +275,7 @@
this.toolStripSeparator1, this.toolStripSeparator1,
this.startToolStripMenuItem, this.startToolStripMenuItem,
this.openToolStripMenuItem, this.openToolStripMenuItem,
this.openProgramFolderToolStripMenuItem,
this.exitToolStripMenuItem}); this.exitToolStripMenuItem});
this.cMTaskbar.Name = "cMTaskbar"; this.cMTaskbar.Name = "cMTaskbar";
resources.ApplyResources(this.cMTaskbar, "cMTaskbar"); resources.ApplyResources(this.cMTaskbar, "cMTaskbar");
@ -1194,6 +1196,21 @@
this.linkSetup.TabStop = true; this.linkSetup.TabStop = true;
this.linkSetup.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lLSetup_LinkClicked); this.linkSetup.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lLSetup_LinkClicked);
// //
// lLBUpdate
//
resources.ApplyResources(this.lLBUpdate, "lLBUpdate");
this.lLBUpdate.Name = "lLBUpdate";
this.lLBUpdate.TabStop = true;
this.lLBUpdate.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lLBUpdate_LinkClicked);
//
// linkSplitLabel
//
resources.ApplyResources(this.linkSplitLabel, "linkSplitLabel");
this.linkSplitLabel.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.linkSplitLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.linkSplitLabel.ForeColor = System.Drawing.SystemColors.ControlText;
this.linkSplitLabel.Name = "linkSplitLabel";
//
// hidGuardWhiteList // hidGuardWhiteList
// //
resources.ApplyResources(this.hidGuardWhiteList, "hidGuardWhiteList"); resources.ApplyResources(this.hidGuardWhiteList, "hidGuardWhiteList");
@ -1215,13 +1232,6 @@
this.hidGuardRegLinkLabel.TabStop = true; this.hidGuardRegLinkLabel.TabStop = true;
this.hidGuardRegLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.HidGuardRegLinkLabel_LinkClicked); this.hidGuardRegLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.HidGuardRegLinkLabel_LinkClicked);
// //
// lLBUpdate
//
resources.ApplyResources(this.lLBUpdate, "lLBUpdate");
this.lLBUpdate.Name = "lLBUpdate";
this.lLBUpdate.TabStop = true;
this.lLBUpdate.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lLBUpdate_LinkClicked);
//
// tabLog // tabLog
// //
this.tabLog.Controls.Add(this.lvDebug); this.tabLog.Controls.Add(this.lvDebug);
@ -1280,13 +1290,11 @@
resources.ApplyResources(this.useCustomColorToolStripMenuItem, "useCustomColorToolStripMenuItem"); resources.ApplyResources(this.useCustomColorToolStripMenuItem, "useCustomColorToolStripMenuItem");
this.useCustomColorToolStripMenuItem.Click += new System.EventHandler(this.useCustomColorToolStripMenuItem_Click); this.useCustomColorToolStripMenuItem.Click += new System.EventHandler(this.useCustomColorToolStripMenuItem_Click);
// //
// linkSplitLabel // openProgramFolderToolStripMenuItem
// //
resources.ApplyResources(this.linkSplitLabel, "linkSplitLabel"); this.openProgramFolderToolStripMenuItem.Name = "openProgramFolderToolStripMenuItem";
this.linkSplitLabel.BackColor = System.Drawing.SystemColors.ActiveBorder; resources.ApplyResources(this.openProgramFolderToolStripMenuItem, "openProgramFolderToolStripMenuItem");
this.linkSplitLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.openProgramFolderToolStripMenuItem.Click += new System.EventHandler(this.OpenProgramFolderToolStripMenuItem_Click);
this.linkSplitLabel.ForeColor = System.Drawing.SystemColors.ControlText;
this.linkSplitLabel.Name = "linkSplitLabel";
// //
// DS4Form // DS4Form
// //
@ -1484,6 +1492,7 @@
private System.Windows.Forms.LinkLabel clrHidGuardWlistLinkLabel; private System.Windows.Forms.LinkLabel clrHidGuardWlistLinkLabel;
private System.Windows.Forms.LinkLabel hidGuardRegLinkLabel; private System.Windows.Forms.LinkLabel hidGuardRegLinkLabel;
private System.Windows.Forms.Label linkSplitLabel; private System.Windows.Forms.Label linkSplitLabel;
private System.Windows.Forms.ToolStripMenuItem openProgramFolderToolStripMenuItem;
//private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; //private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
} }
} }

View File

@ -2527,6 +2527,15 @@ namespace DS4Windows
catch { } catch { }
} }
private void OpenProgramFolderToolStripMenuItem_Click(object sender, EventArgs e)
{
Process temp = new Process();
temp.StartInfo.FileName = "explorer.exe";
temp.StartInfo.Arguments = @"/select, " + Assembly.GetExecutingAssembly().Location;
try { temp.Start(); }
catch { }
}
private void cBFlashWhenLate_CheckedChanged(object sender, EventArgs e) private void cBFlashWhenLate_CheckedChanged(object sender, EventArgs e)
{ {
FlashWhenLate = cBFlashWhenLate.Checked; FlashWhenLate = cBFlashWhenLate.Checked;

File diff suppressed because it is too large Load Diff