Minor fixes in AboutForm

This commit is contained in:
Alexander 2018-02-17 14:47:21 +02:00
parent 12b717ffa3
commit af65cc936a
2 changed files with 86 additions and 79 deletions

View file

@ -31,12 +31,11 @@ private void InitializeComponent()
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutFrom));
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.customRichTextBox1 = new Crypto_Notepad.CustomRichTextBox();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
this.linkLabel3 = new System.Windows.Forms.LinkLabel();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
@ -55,106 +54,110 @@ private void InitializeComponent()
//
// pictureBox1
//
this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Default;
this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(228, 2);
this.pictureBox1.Location = new System.Drawing.Point(320, 2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(77, 68);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
//
// label2
//
this.label2.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(6, 33);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(215, 67);
this.label2.TabIndex = 2;
this.label2.Text = "This is an open-source app created by and distributed under\r\nThe source " +
"code, issues and documentation posted on";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Cursor = System.Windows.Forms.Cursors.Hand;
this.label3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(207, 46);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(25, 13);
this.label3.TabIndex = 3;
this.label3.Text = "MIT";
this.label3.Click += new System.EventHandler(this.label3_Click);
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(6, 98);
this.label5.Location = new System.Drawing.Point(6, 107);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(182, 15);
this.label5.TabIndex = 4;
this.label5.Text = "Third-party developments:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Cursor = System.Windows.Forms.Cursors.Hand;
this.label6.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(147, 72);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(43, 13);
this.label6.TabIndex = 5;
this.label6.Text = "GitHub";
this.label6.Click += new System.EventHandler(this.label6_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Cursor = System.Windows.Forms.Cursors.Hand;
this.label4.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(24, 46);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(55, 13);
this.label4.TabIndex = 3;
this.label4.Text = "Sigmanor";
this.label4.Click += new System.EventHandler(this.label4_Click);
//
// customRichTextBox1
//
this.customRichTextBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.customRichTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.customRichTextBox1.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.customRichTextBox1.ForeColor = System.Drawing.Color.White;
this.customRichTextBox1.Location = new System.Drawing.Point(0, 120);
this.customRichTextBox1.Location = new System.Drawing.Point(0, 131);
this.customRichTextBox1.Name = "customRichTextBox1";
this.customRichTextBox1.ReadOnly = true;
this.customRichTextBox1.RightMargin = 600;
this.customRichTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Horizontal;
this.customRichTextBox1.ShowSelectionMargin = true;
this.customRichTextBox1.Size = new System.Drawing.Size(300, 104);
this.customRichTextBox1.Size = new System.Drawing.Size(398, 90);
this.customRichTextBox1.TabIndex = 8;
this.customRichTextBox1.TabStop = false;
this.customRichTextBox1.Text = resources.GetString("customRichTextBox1.Text");
this.customRichTextBox1.WordWrap = false;
this.customRichTextBox1.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.customRichTextBox1_LinkClicked);
//
// linkLabel1
//
this.linkLabel1.ActiveLinkColor = System.Drawing.Color.White;
this.linkLabel1.AutoSize = true;
this.linkLabel1.DisabledLinkColor = System.Drawing.Color.White;
this.linkLabel1.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.linkLabel1.ForeColor = System.Drawing.Color.White;
this.linkLabel1.LinkArea = new System.Windows.Forms.LinkArea(38, 8);
this.linkLabel1.LinkColor = System.Drawing.Color.White;
this.linkLabel1.Location = new System.Drawing.Point(9, 39);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(291, 18);
this.linkLabel1.TabIndex = 9;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "This is an open-source app created by Sigmanor";
this.linkLabel1.UseCompatibleTextRendering = true;
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// linkLabel2
//
this.linkLabel2.ActiveLinkColor = System.Drawing.Color.White;
this.linkLabel2.AutoSize = true;
this.linkLabel2.DisabledLinkColor = System.Drawing.Color.White;
this.linkLabel2.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.linkLabel2.ForeColor = System.Drawing.Color.White;
this.linkLabel2.LinkArea = new System.Windows.Forms.LinkArea(18, 3);
this.linkLabel2.LinkColor = System.Drawing.Color.White;
this.linkLabel2.Location = new System.Drawing.Point(9, 57);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(185, 18);
this.linkLabel2.TabIndex = 9;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "Distributed under MIT license";
this.linkLabel2.UseCompatibleTextRendering = true;
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
//
// linkLabel3
//
this.linkLabel3.ActiveLinkColor = System.Drawing.Color.White;
this.linkLabel3.AutoSize = true;
this.linkLabel3.DisabledLinkColor = System.Drawing.Color.White;
this.linkLabel3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.linkLabel3.ForeColor = System.Drawing.Color.White;
this.linkLabel3.LinkArea = new System.Windows.Forms.LinkArea(52, 6);
this.linkLabel3.LinkColor = System.Drawing.Color.White;
this.linkLabel3.Location = new System.Drawing.Point(9, 75);
this.linkLabel3.Name = "linkLabel3";
this.linkLabel3.Size = new System.Drawing.Size(366, 18);
this.linkLabel3.TabIndex = 9;
this.linkLabel3.TabStop = true;
this.linkLabel3.Text = "The source code, issues and documentation posted on GitHub";
this.linkLabel3.UseCompatibleTextRendering = true;
this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel3_LinkClicked);
//
// AboutFrom
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.ClientSize = new System.Drawing.Size(300, 224);
this.ClientSize = new System.Drawing.Size(398, 221);
this.Controls.Add(this.linkLabel3);
this.Controls.Add(this.linkLabel2);
this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.customRichTextBox1);
this.Controls.Add(this.label6);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.label5);
@ -177,11 +180,10 @@ private void InitializeComponent()
private System.Windows.Forms.Label label1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private CustomRichTextBox customRichTextBox1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.LinkLabel linkLabel2;
private System.Windows.Forms.LinkLabel linkLabel3;
}
}

View file

@ -11,11 +11,6 @@ public AboutFrom()
InitializeComponent();
}
private void label3_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Sigmanor/Crypto-Notepad/blob/master/LICENSE");
}
private void label7_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Sigmanor/Crypto-Notepad");
@ -48,11 +43,6 @@ private void label14_Click(object sender, EventArgs e)
}
private void label6_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Sigmanor/Crypto-Notepad");
}
private void customRichTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
{
Process.Start(e.LinkText);
@ -68,7 +58,22 @@ private void label1_Click(object sender, EventArgs e)
Process.Start("https://github.com/Sigmanor/Crypto-Notepad/wiki/Release-Notes");
}
private void label4_Click(object sender, EventArgs e)
private void pictureBox1_Click(object sender, EventArgs e)
{
Process.Start("https://crypto-notepad.github.io/");
}
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://github.com/Sigmanor/Crypto-Notepad");
}
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://github.com/Sigmanor/Crypto-Notepad/blob/master/LICENSE");
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("http://sigmanor.pp.ua/");
}