From ca473be5960d5a07c8d0851eede99ac5ee9eb764 Mon Sep 17 00:00:00 2001 From: MaikyM <51415805+MaikyM@users.noreply.github.com> Date: Sun, 14 Jul 2019 00:38:47 -0600 Subject: [PATCH] About: Added How to use link --- FModel/Forms/About.Designer.cs | 20 +++++++++++++++++--- FModel/Forms/About.cs | 7 ++++++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/FModel/Forms/About.Designer.cs b/FModel/Forms/About.Designer.cs index a92c7b02..373c655d 100644 --- a/FModel/Forms/About.Designer.cs +++ b/FModel/Forms/About.Designer.cs @@ -1,4 +1,4 @@ -namespace FModel.Forms +namespace FModel.Forms { partial class About { @@ -36,6 +36,7 @@ this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); + this.linkLabel3 = new System.Windows.Forms.LinkLabel(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // @@ -52,7 +53,7 @@ // linkLabel1 // this.linkLabel1.AutoSize = true; - this.linkLabel1.Location = new System.Drawing.Point(137, 89); + this.linkLabel1.Location = new System.Drawing.Point(138, 98); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(69, 13); this.linkLabel1.TabIndex = 1; @@ -63,7 +64,7 @@ // linkLabel2 // this.linkLabel2.AutoSize = true; - this.linkLabel2.Location = new System.Drawing.Point(398, 91); + this.linkLabel2.Location = new System.Drawing.Point(381, 98); this.linkLabel2.Name = "linkLabel2"; this.linkLabel2.Size = new System.Drawing.Size(43, 13); this.linkLabel2.TabIndex = 2; @@ -115,11 +116,23 @@ this.label4.Text = "• Waddlesworth • Maiky M • AyeTSG • FireMonkey"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // + // linkLabel3 + // + this.linkLabel3.AutoSize = true; + this.linkLabel3.Location = new System.Drawing.Point(260, 98); + this.linkLabel3.Name = "linkLabel3"; + this.linkLabel3.Size = new System.Drawing.Size(61, 13); + this.linkLabel3.TabIndex = 12; + this.linkLabel3.TabStop = true; + this.linkLabel3.Text = "How to use"; + this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel3_LinkClicked); + // // About // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(467, 145); + this.Controls.Add(this.linkLabel3); this.Controls.Add(this.label4); this.Controls.Add(this.linkLabel2); this.Controls.Add(this.linkLabel1); @@ -149,5 +162,6 @@ private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; + private System.Windows.Forms.LinkLabel linkLabel3; } } diff --git a/FModel/Forms/About.cs b/FModel/Forms/About.cs index 91c016cf..99bcbcd5 100644 --- a/FModel/Forms/About.cs +++ b/FModel/Forms/About.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using System.Windows.Forms; namespace FModel.Forms @@ -21,5 +21,10 @@ namespace FModel.Forms { System.Diagnostics.Process.Start("https://discordapp.com/invite/JmWvXKb"); } + + private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + System.Diagnostics.Process.Start("https://github.com/iAmAsval/FModel#how-to-use"); + } } }