From 8fd4c857ec08dc36bac4b5a9924362afe07ff4e8 Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Thu, 20 May 2021 17:59:09 +1200 Subject: [PATCH] Added help button Added a help button that opens the DisplayMagician Wiki. I feel like there are so many functions and features available in DisplayMagician that I need to write some help and guidance on how to use it. --- DisplayMagician/UIForms/MainForm.Designer.cs | 13 +++++ DisplayMagician/UIForms/MainForm.cs | 5 ++ DisplayMagician/UIForms/MainForm.resx | 60 ++++++++++++++++---- 3 files changed, 66 insertions(+), 12 deletions(-) diff --git a/DisplayMagician/UIForms/MainForm.Designer.cs b/DisplayMagician/UIForms/MainForm.Designer.cs index d78e85f..7f93f58 100644 --- a/DisplayMagician/UIForms/MainForm.Designer.cs +++ b/DisplayMagician/UIForms/MainForm.Designer.cs @@ -55,6 +55,7 @@ this.shortcutToolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.btn_help = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -72,6 +73,7 @@ // // splitContainer1.Panel1 // + this.splitContainer1.Panel1.Controls.Add(this.btn_help); this.splitContainer1.Panel1.Controls.Add(this.btn_donate); this.splitContainer1.Panel1.Controls.Add(this.btn_settings); this.splitContainer1.Panel1.Controls.Add(this.lbl_create_profile); @@ -268,6 +270,16 @@ resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem"); this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); // + // btn_help + // + resources.ApplyResources(this.btn_help, "btn_help"); + this.btn_help.FlatAppearance.MouseDownBackColor = System.Drawing.Color.IndianRed; + this.btn_help.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Brown; + this.btn_help.ForeColor = System.Drawing.Color.White; + this.btn_help.Name = "btn_help"; + this.btn_help.UseVisualStyleBackColor = true; + this.btn_help.Click += new System.EventHandler(this.btn_help_Click); + // // MainForm // resources.ApplyResources(this, "$this"); @@ -319,5 +331,6 @@ private System.Windows.Forms.Label lbl_create_shortcut; private System.Windows.Forms.Button btn_settings; private System.Windows.Forms.Button btn_donate; + private System.Windows.Forms.Button btn_help; } } \ No newline at end of file diff --git a/DisplayMagician/UIForms/MainForm.cs b/DisplayMagician/UIForms/MainForm.cs index ca41390..a59e3fc 100644 --- a/DisplayMagician/UIForms/MainForm.cs +++ b/DisplayMagician/UIForms/MainForm.cs @@ -582,5 +582,10 @@ namespace DisplayMagician.UIForms } } + private void btn_help_Click(object sender, EventArgs e) + { + string targetURL = @"https://github.com/terrymacdonald/DisplayMagician/wiki"; + System.Diagnostics.Process.Start(targetURL); + } } } diff --git a/DisplayMagician/UIForms/MainForm.resx b/DisplayMagician/UIForms/MainForm.resx index 1c60060..8a8e399 100644 --- a/DisplayMagician/UIForms/MainForm.resx +++ b/DisplayMagician/UIForms/MainForm.resx @@ -132,6 +132,39 @@ Horizontal + + Top, Right + + + Flat + + + NoControl + + + 536, 8 + + + 75, 23 + + + 9 + + + &Help + + + btn_help + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + splitContainer1.Panel1 + + + 0 + Top, Right @@ -163,7 +196,7 @@ splitContainer1.Panel1 - 0 + 1 Top, Right @@ -193,7 +226,7 @@ splitContainer1.Panel1 - 1 + 2 None @@ -205,7 +238,7 @@ Microsoft Sans Serif, 12pt - 230, 239 + 230, 238 316, 22 @@ -229,7 +262,7 @@ splitContainer1.Panel1 - 2 + 3 None @@ -241,7 +274,7 @@ Microsoft Sans Serif, 21.75pt - 210, 166 + 210, 165 360, 50 @@ -262,7 +295,7 @@ splitContainer1.Panel1 - 3 + 4 Fill @@ -10810,7 +10843,7 @@ splitContainer1.Panel1 - 4 + 5 splitContainer1.Panel1 @@ -10837,7 +10870,7 @@ NoControl - 282, 247 + 282, 248 222, 22 @@ -10879,7 +10912,7 @@ NoControl - 162, 356 + 162, 354 460, 20 @@ -10912,7 +10945,7 @@ Microsoft Sans Serif, 9.75pt - 12, 357 + 12, 355 25, 16 @@ -10948,7 +10981,7 @@ Microsoft Sans Serif, 21.75pt - 212, 174 + 212, 175 360, 50 @@ -10981,7 +11014,7 @@ NoControl - 700, 353 + 700, 351 75, 23 @@ -79070,6 +79103,9 @@ rjGJe6619efaHz2S/5D4v/OFla+gZqVXAAAAAElFTkSuQmCC + + NoControl + 1100, 950