diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs index f5d9022..9002295 100644 --- a/MainForm.Designer.cs +++ b/MainForm.Designer.cs @@ -67,6 +67,7 @@ private void InitializeComponent() this.defaultdpiLabel = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.defaultdpiBar = new System.Windows.Forms.TrackBar(); + this.contextMenuLicense = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.rawImage)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.processedImage)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.distanceBar)).BeginInit(); @@ -238,14 +239,14 @@ private void InitializeComponent() // contextMenuGitHub // this.contextMenuGitHub.Name = "contextMenuGitHub"; - this.contextMenuGitHub.Size = new System.Drawing.Size(141, 22); + this.contextMenuGitHub.Size = new System.Drawing.Size(180, 22); this.contextMenuGitHub.Text = "GitHub page"; this.contextMenuGitHub.Click += new System.EventHandler(this.contextMenuGitHub_Click); // // contextMenuHelp // this.contextMenuHelp.Name = "contextMenuHelp"; - this.contextMenuHelp.Size = new System.Drawing.Size(141, 22); + this.contextMenuHelp.Size = new System.Drawing.Size(180, 22); this.contextMenuHelp.Text = "Help"; this.contextMenuHelp.Click += new System.EventHandler(this.contextMenuHelp_Click); // @@ -258,7 +259,7 @@ private void InitializeComponent() this.contextMenuIssuesDontKnow, this.contextMenuIssuesOther}); this.contextMenuIssues.Name = "contextMenuIssues"; - this.contextMenuIssues.Size = new System.Drawing.Size(141, 22); + this.contextMenuIssues.Size = new System.Drawing.Size(180, 22); this.contextMenuIssues.Text = "Problems?"; // // contextMenuIssuesDesign @@ -303,21 +304,22 @@ private void InitializeComponent() this.contextMenuHelp, this.contextMenuIssues, this.contextMenuVersionCheck, + this.contextMenuLicense, this.contextMenuAbout}); this.contextMenu.Name = "contextMenu"; - this.contextMenu.Size = new System.Drawing.Size(142, 114); + this.contextMenu.Size = new System.Drawing.Size(181, 158); // // contextMenuVersionCheck // this.contextMenuVersionCheck.Name = "contextMenuVersionCheck"; - this.contextMenuVersionCheck.Size = new System.Drawing.Size(141, 22); + this.contextMenuVersionCheck.Size = new System.Drawing.Size(180, 22); this.contextMenuVersionCheck.Text = "Live Update"; this.contextMenuVersionCheck.Click += new System.EventHandler(this.contextMenuVersionCheck_Click); // // contextMenuAbout // this.contextMenuAbout.Name = "contextMenuAbout"; - this.contextMenuAbout.Size = new System.Drawing.Size(141, 22); + this.contextMenuAbout.Size = new System.Drawing.Size(180, 22); this.contextMenuAbout.Text = "About"; this.contextMenuAbout.Click += new System.EventHandler(this.contextMenuAbout_Click); // @@ -385,6 +387,13 @@ private void InitializeComponent() this.defaultdpiBar.Value = 50; this.defaultdpiBar.Scroll += new System.EventHandler(this.defaultdpiBar_Scroll); // + // contextMenuLicense + // + this.contextMenuLicense.Name = "contextMenuLicense"; + this.contextMenuLicense.Size = new System.Drawing.Size(180, 22); + this.contextMenuLicense.Text = "License"; + this.contextMenuLicense.Click += new System.EventHandler(this.contextMenuLicense_Click); + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -467,6 +476,7 @@ private void InitializeComponent() private System.Windows.Forms.Label defaultdpiLabel; private System.Windows.Forms.Label label2; private System.Windows.Forms.TrackBar defaultdpiBar; + private System.Windows.Forms.ToolStripMenuItem contextMenuLicense; } } diff --git a/MainForm.cs b/MainForm.cs index 7c87243..2de7ea0 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -222,6 +222,11 @@ private void defaultdpiBar_Scroll(object sender, EventArgs e) _OCR.DefaultScaleDPI = defaultdpiBar.Value; defaultdpiLabel.Text = defaultdpiBar.Value.ToString(); } + + private void contextMenuLicense_Click(object sender, EventArgs e) + { + Process.Start($"https://github.com/{_LiveUpdater.Repository}/blob/master/LICENSE.md"); + } // End of context menu links. } } \ No newline at end of file