How to use link

This commit is contained in:
Christian Wade 2020-02-18 07:51:07 -08:00
parent 30510fb307
commit 038651242e
2 changed files with 48 additions and 36 deletions

View File

@ -38,6 +38,7 @@
this.linkLatestVersion = new System.Windows.Forms.LinkLabel(); this.linkLatestVersion = new System.Windows.Forms.LinkLabel();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.linkTwitter = new System.Windows.Forms.LinkLabel(); this.linkTwitter = new System.Windows.Forms.LinkLabel();
this.linkHowToUse = new System.Windows.Forms.LinkLabel();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -45,20 +46,20 @@
// //
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.okButton.Location = new System.Drawing.Point(474, 455); this.okButton.Location = new System.Drawing.Point(287, 304);
this.okButton.Margin = new System.Windows.Forms.Padding(7, 7, 7, 7); this.okButton.Margin = new System.Windows.Forms.Padding(4);
this.okButton.Name = "okButton"; this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(175, 56); this.okButton.Size = new System.Drawing.Size(100, 31);
this.okButton.TabIndex = 24; this.okButton.TabIndex = 24;
this.okButton.Text = "&OK"; this.okButton.Text = "&OK";
// //
// logoPictureBox // logoPictureBox
// //
this.logoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image"))); this.logoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image")));
this.logoPictureBox.Location = new System.Drawing.Point(28, 20); this.logoPictureBox.Location = new System.Drawing.Point(16, 11);
this.logoPictureBox.Margin = new System.Windows.Forms.Padding(7, 7, 7, 7); this.logoPictureBox.Margin = new System.Windows.Forms.Padding(4);
this.logoPictureBox.Name = "logoPictureBox"; this.logoPictureBox.Name = "logoPictureBox";
this.logoPictureBox.Size = new System.Drawing.Size(147, 149); this.logoPictureBox.Size = new System.Drawing.Size(84, 82);
this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.logoPictureBox.TabIndex = 12; this.logoPictureBox.TabIndex = 12;
this.logoPictureBox.TabStop = false; this.logoPictureBox.TabStop = false;
@ -66,10 +67,9 @@
// lblProductVersion // lblProductVersion
// //
this.lblProductVersion.AutoSize = true; this.lblProductVersion.AutoSize = true;
this.lblProductVersion.Location = new System.Drawing.Point(208, 205); this.lblProductVersion.Location = new System.Drawing.Point(119, 211);
this.lblProductVersion.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.lblProductVersion.Name = "lblProductVersion"; this.lblProductVersion.Name = "lblProductVersion";
this.lblProductVersion.Size = new System.Drawing.Size(79, 29); this.lblProductVersion.Size = new System.Drawing.Size(45, 16);
this.lblProductVersion.TabIndex = 26; this.lblProductVersion.TabIndex = 26;
this.lblProductVersion.Text = "label1"; this.lblProductVersion.Text = "label1";
// //
@ -77,20 +77,18 @@
// //
this.lblProductName.AutoSize = true; this.lblProductName.AutoSize = true;
this.lblProductName.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblProductName.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblProductName.Location = new System.Drawing.Point(205, 22); this.lblProductName.Location = new System.Drawing.Point(117, 12);
this.lblProductName.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.lblProductName.Name = "lblProductName"; this.lblProductName.Name = "lblProductName";
this.lblProductName.Size = new System.Drawing.Size(132, 44); this.lblProductName.Size = new System.Drawing.Size(64, 22);
this.lblProductName.TabIndex = 27; this.lblProductName.TabIndex = 27;
this.lblProductName.Text = "label1"; this.lblProductName.Text = "label1";
// //
// linkReleaseHistory // linkReportIssue
// //
this.linkReportIssue.AutoSize = true; this.linkReportIssue.AutoSize = true;
this.linkReportIssue.Location = new System.Drawing.Point(208, 312); this.linkReportIssue.Location = new System.Drawing.Point(119, 149);
this.linkReportIssue.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); this.linkReportIssue.Name = "linkReportIssue";
this.linkReportIssue.Name = "linkReleaseHistory"; this.linkReportIssue.Size = new System.Drawing.Size(102, 16);
this.linkReportIssue.Size = new System.Drawing.Size(181, 29);
this.linkReportIssue.TabIndex = 28; this.linkReportIssue.TabIndex = 28;
this.linkReportIssue.TabStop = true; this.linkReportIssue.TabStop = true;
this.linkReportIssue.Text = "Report an issue"; this.linkReportIssue.Text = "Report an issue";
@ -99,10 +97,9 @@
// linkDocumentation // linkDocumentation
// //
this.linkDocumentation.AutoSize = true; this.linkDocumentation.AutoSize = true;
this.linkDocumentation.Location = new System.Drawing.Point(208, 152); this.linkDocumentation.Location = new System.Drawing.Point(119, 117);
this.linkDocumentation.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.linkDocumentation.Name = "linkDocumentation"; this.linkDocumentation.Name = "linkDocumentation";
this.linkDocumentation.Size = new System.Drawing.Size(174, 29); this.linkDocumentation.Size = new System.Drawing.Size(98, 16);
this.linkDocumentation.TabIndex = 30; this.linkDocumentation.TabIndex = 30;
this.linkDocumentation.TabStop = true; this.linkDocumentation.TabStop = true;
this.linkDocumentation.Text = "Documentation"; this.linkDocumentation.Text = "Documentation";
@ -111,10 +108,9 @@
// linkALMTWebsite // linkALMTWebsite
// //
this.linkALMTWebsite.AutoSize = true; this.linkALMTWebsite.AutoSize = true;
this.linkALMTWebsite.Location = new System.Drawing.Point(208, 98); this.linkALMTWebsite.Location = new System.Drawing.Point(119, 54);
this.linkALMTWebsite.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.linkALMTWebsite.Name = "linkALMTWebsite"; this.linkALMTWebsite.Name = "linkALMTWebsite";
this.linkALMTWebsite.Size = new System.Drawing.Size(242, 29); this.linkALMTWebsite.Size = new System.Drawing.Size(134, 16);
this.linkALMTWebsite.TabIndex = 31; this.linkALMTWebsite.TabIndex = 31;
this.linkALMTWebsite.TabStop = true; this.linkALMTWebsite.TabStop = true;
this.linkALMTWebsite.Text = "http://alm-toolkit.com/"; this.linkALMTWebsite.Text = "http://alm-toolkit.com/";
@ -123,10 +119,9 @@
// linkLatestVersion // linkLatestVersion
// //
this.linkLatestVersion.AutoSize = true; this.linkLatestVersion.AutoSize = true;
this.linkLatestVersion.Location = new System.Drawing.Point(208, 257); this.linkLatestVersion.Location = new System.Drawing.Point(119, 240);
this.linkLatestVersion.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.linkLatestVersion.Name = "linkLatestVersion"; this.linkLatestVersion.Name = "linkLatestVersion";
this.linkLatestVersion.Size = new System.Drawing.Size(161, 29); this.linkLatestVersion.Size = new System.Drawing.Size(91, 16);
this.linkLatestVersion.TabIndex = 32; this.linkLatestVersion.TabIndex = 32;
this.linkLatestVersion.TabStop = true; this.linkLatestVersion.TabStop = true;
this.linkLatestVersion.Text = "Latest version"; this.linkLatestVersion.Text = "Latest version";
@ -136,32 +131,42 @@
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(208, 370); this.label1.Location = new System.Drawing.Point(119, 181);
this.label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(136, 29); this.label1.Size = new System.Drawing.Size(77, 16);
this.label1.TabIndex = 33; this.label1.TabIndex = 33;
this.label1.Text = "Created by "; this.label1.Text = "Created by ";
// //
// linkTwitter // linkTwitter
// //
this.linkTwitter.AutoSize = true; this.linkTwitter.AutoSize = true;
this.linkTwitter.Location = new System.Drawing.Point(338, 370); this.linkTwitter.Location = new System.Drawing.Point(193, 181);
this.linkTwitter.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.linkTwitter.Name = "linkTwitter"; this.linkTwitter.Name = "linkTwitter";
this.linkTwitter.Size = new System.Drawing.Size(176, 29); this.linkTwitter.Size = new System.Drawing.Size(99, 16);
this.linkTwitter.TabIndex = 34; this.linkTwitter.TabIndex = 34;
this.linkTwitter.TabStop = true; this.linkTwitter.TabStop = true;
this.linkTwitter.Text = "Christian Wade"; this.linkTwitter.Text = "Christian Wade";
this.linkTwitter.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkTwitter_LinkClicked); this.linkTwitter.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkTwitter_LinkClicked);
// //
// linkHowToUse
//
this.linkHowToUse.AutoSize = true;
this.linkHowToUse.Location = new System.Drawing.Point(119, 86);
this.linkHowToUse.Name = "linkHowToUse";
this.linkHowToUse.Size = new System.Drawing.Size(74, 16);
this.linkHowToUse.TabIndex = 35;
this.linkHowToUse.TabStop = true;
this.linkHowToUse.Text = "How to use";
this.linkHowToUse.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkHowToUse_LinkClicked);
//
// About // About
// //
this.AcceptButton = this.okButton; this.AcceptButton = this.okButton;
this.AutoScaleDimensions = new System.Drawing.SizeF(14F, 29F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.okButton; this.CancelButton = this.okButton;
this.ClientSize = new System.Drawing.Size(677, 538); this.ClientSize = new System.Drawing.Size(403, 350);
this.Controls.Add(this.linkHowToUse);
this.Controls.Add(this.linkTwitter); this.Controls.Add(this.linkTwitter);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.linkLatestVersion); this.Controls.Add(this.linkLatestVersion);
@ -173,11 +178,11 @@
this.Controls.Add(this.logoPictureBox); this.Controls.Add(this.logoPictureBox);
this.Controls.Add(this.okButton); this.Controls.Add(this.okButton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Margin = new System.Windows.Forms.Padding(7, 7, 7, 7); this.Margin = new System.Windows.Forms.Padding(4);
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "About"; this.Name = "About";
this.Padding = new System.Windows.Forms.Padding(21, 20, 21, 20); this.Padding = new System.Windows.Forms.Padding(12, 11, 12, 11);
this.ShowIcon = false; this.ShowIcon = false;
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
@ -200,5 +205,6 @@
private System.Windows.Forms.LinkLabel linkLatestVersion; private System.Windows.Forms.LinkLabel linkLatestVersion;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.LinkLabel linkTwitter; private System.Windows.Forms.LinkLabel linkTwitter;
private System.Windows.Forms.LinkLabel linkHowToUse;
} }
} }

View File

@ -54,6 +54,12 @@ namespace AlmToolkit
System.Diagnostics.Process.Start("http://alm-toolkit.com/"); System.Diagnostics.Process.Start("http://alm-toolkit.com/");
} }
private void linkHowToUse_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.linkHowToUse.LinkVisited = true;
System.Diagnostics.Process.Start("http://alm-toolkit.com/HowToUse");
}
private void linkDocumentation_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void linkDocumentation_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{ {
this.linkDocumentation.LinkVisited = true; this.linkDocumentation.LinkVisited = true;