From 8344c4a7521725e00e5653854401c3ab556f801d Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Thu, 7 Jan 2016 17:00:49 +0200 Subject: [PATCH] Added about window --- EncryptPad/AboutFrom.Designer.cs | 272 +++++++++++++++++++++++++++++++ EncryptPad/AboutFrom.cs | 71 ++++++++ EncryptPad/AboutFrom.resx | 158 ++++++++++++++++++ EncryptPad/Form1.cs | 5 +- 4 files changed, 503 insertions(+), 3 deletions(-) create mode 100644 EncryptPad/AboutFrom.Designer.cs create mode 100644 EncryptPad/AboutFrom.cs create mode 100644 EncryptPad/AboutFrom.resx diff --git a/EncryptPad/AboutFrom.Designer.cs b/EncryptPad/AboutFrom.Designer.cs new file mode 100644 index 0000000..2572ed7 --- /dev/null +++ b/EncryptPad/AboutFrom.Designer.cs @@ -0,0 +1,272 @@ +namespace EncryptPad +{ + partial class AboutFrom + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + 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.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.label10 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(5, 6); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(160, 22); + this.label1.TabIndex = 0; + this.label1.Text = "EncryptPad v0.0"; + // + // pictureBox1 + // + 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(219, 9); + 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; + this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); + // + // label2 + // + this.label2.AutoSize = true; + 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, 28); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(133, 13); + this.label2.TabIndex = 2; + this.label2.Text = "developed by Sigmanor"; + // + // 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(6, 51); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(109, 13); + this.label3.TabIndex = 3; + this.label3.Text = "Licence Agreement"; + this.label3.Click += new System.EventHandler(this.label3_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(6, 74); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(85, 13); + this.label4.TabIndex = 3; + this.label4.Text = "Release Notes"; + this.label4.Click += new System.EventHandler(this.label4_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, 132); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(224, 15); + this.label5.TabIndex = 4; + this.label5.Text = "External materials / libraries:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label6.ForeColor = System.Drawing.Color.White; + this.label6.Location = new System.Drawing.Point(6, 103); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(55, 13); + this.label6.TabIndex = 5; + this.label6.Text = "WebSite:"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Cursor = System.Windows.Forms.Cursors.Hand; + this.label7.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label7.ForeColor = System.Drawing.Color.CornflowerBlue; + this.label7.Location = new System.Drawing.Point(59, 103); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(235, 13); + this.label7.TabIndex = 3; + this.label7.Text = "https://github.com/Sigmanor/EncryptPad"; + this.label7.Click += new System.EventHandler(this.label7_Click); + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label8.ForeColor = System.Drawing.Color.White; + this.label8.Location = new System.Drawing.Point(6, 160); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(145, 13); + this.label8.TabIndex = 5; + this.label8.Text = "CustomSettingsProvider:"; + // + // label9 + // + this.label9.AutoEllipsis = true; + this.label9.Cursor = System.Windows.Forms.Cursors.Hand; + this.label9.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label9.ForeColor = System.Drawing.Color.CornflowerBlue; + this.label9.Location = new System.Drawing.Point(148, 160); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(155, 13); + this.label9.TabIndex = 3; + this.label9.Text = "http://www.codeproject.com/Articles/20917/Creating-a-Custom-Settings-Provider"; + this.toolTip1.SetToolTip(this.label9, "http://www.codeproject.com/Articles/20917/Creating-a-Custom-Settings-Provider"); + this.label9.Click += new System.EventHandler(this.label9_Click); + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label10.ForeColor = System.Drawing.Color.White; + this.label10.Location = new System.Drawing.Point(6, 182); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(31, 13); + this.label10.TabIndex = 5; + this.label10.Text = "AES:"; + // + // label11 + // + this.label11.AutoEllipsis = true; + this.label11.Cursor = System.Windows.Forms.Cursors.Hand; + this.label11.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label11.ForeColor = System.Drawing.Color.CornflowerBlue; + this.label11.Location = new System.Drawing.Point(35, 182); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(265, 13); + this.label11.TabIndex = 3; + this.label11.Text = "http://easylab.net.ua/net-c-windows-forms/c-algoritm-shifrovaniya-aes"; + this.toolTip1.SetToolTip(this.label11, "http://easylab.net.ua/net-c-windows-forms/c-algoritm-shifrovaniya-aes"); + this.label11.Click += new System.EventHandler(this.label11_Click); + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label12.ForeColor = System.Drawing.Color.White; + this.label12.Location = new System.Drawing.Point(6, 206); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(115, 13); + this.label12.TabIndex = 5; + this.label12.Text = "CustomRichTextBox:"; + // + // label13 + // + this.label13.AutoEllipsis = true; + this.label13.Cursor = System.Windows.Forms.Cursors.Hand; + this.label13.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label13.ForeColor = System.Drawing.Color.CornflowerBlue; + this.label13.Location = new System.Drawing.Point(117, 206); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(184, 13); + this.label13.TabIndex = 3; + this.label13.Text = "https://code.msdn.microsoft.com/windowsdesktop/How-to-find-the-text-and-e92b8d78"; + this.toolTip1.SetToolTip(this.label13, "https://code.msdn.microsoft.com/windowsdesktop/How-to-find-the-text-and-e92b8d78"); + this.label13.Click += new System.EventHandler(this.label13_Click); + // + // AboutWindow + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(67)))), ((int)(((byte)(92))))); + this.ClientSize = new System.Drawing.Size(300, 227); + this.Controls.Add(this.label12); + this.Controls.Add(this.label10); + this.Controls.Add(this.label8); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label13); + this.Controls.Add(this.label11); + this.Controls.Add(this.label9); + this.Controls.Add(this.label7); + 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.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "AboutWindow"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "About"; + this.Load += new System.EventHandler(this.AboutWindow_Load); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + 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 label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.ToolTip toolTip1; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + } +} \ No newline at end of file diff --git a/EncryptPad/AboutFrom.cs b/EncryptPad/AboutFrom.cs new file mode 100644 index 0000000..2de8fe2 --- /dev/null +++ b/EncryptPad/AboutFrom.cs @@ -0,0 +1,71 @@ +using System; +using System.Diagnostics; +using System.Drawing; +using System.Windows.Forms; + +namespace EncryptPad +{ + public partial class AboutFrom : Form + { + public AboutFrom() + { + InitializeComponent(); + } + + private void label3_Click(object sender, EventArgs e) + { + Process.Start("https://github.com/Sigmanor/EncryptPad/blob/master/LICENSE"); + } + + private void label7_Click(object sender, EventArgs e) + { + Process.Start("https://github.com/Sigmanor/EncryptPad"); + } + + private void label9_Click(object sender, EventArgs e) + { + Process.Start("http://www.codeproject.com/Articles/20917/Creating-a-Custom-Settings-Provider"); + } + + private void label11_Click(object sender, EventArgs e) + { + Process.Start("http://easylab.net.ua/net-c-windows-forms/c-algoritm-shifrovaniya-aes"); + } + + private void label13_Click(object sender, EventArgs e) + { + Process.Start("https://code.msdn.microsoft.com/windowsdesktop/How-to-find-the-text-and-e92b8d78"); + } + + private void AboutWindow_Load(object sender, EventArgs e) + { + Version vrs = new Version(Application.ProductVersion); + label1.Text = string.Format("EncryptPad "+"{0}.{1}", vrs.Major, vrs.Minor); + } + + private void label4_Click(object sender, EventArgs e) + { + Process.Start("https://github.com/Sigmanor/EncryptPad/wiki/Release-Notes"); + } + + private void pictureBox1_Click(object sender, EventArgs e) + { + if (this.BackColor == Color.FromArgb(64, 64, 64)) + { + this.BackColor = Color.FromArgb(36, 67, 92); + } + + else if (this.BackColor == Color.FromArgb(36, 67, 92)) + { + this.BackColor = Color.FromArgb(90, 36, 119); + } + + else if (this.BackColor == Color.FromArgb(90, 36, 119)) + { + this.BackColor = Color.FromArgb(64, 64, 64); + } + + + } + } +} diff --git a/EncryptPad/AboutFrom.resx b/EncryptPad/AboutFrom.resx new file mode 100644 index 0000000..d259a9e --- /dev/null +++ b/EncryptPad/AboutFrom.resx @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAW6SURBVHhe7ZtfbxRVGMaX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/ajAMhZFUDN27MGhrACvHfsIG1rAmLE4/alABLkXmg/tKAN0rh7tSwe3v5G/PvPI1nI + 4Rj6hgZoYRozkbkX5EItsUEDdJwXgxamUYNawWrCo1Ea6p6PG7RQnRkgd3kEWIz8ZAHyZlRnJl5QsL39 + zZsxjVkgd5wD6MYs8mZMow6PC8BW6uBiv9/7Q1xYuyZK868psIx1LsY06jDwAiDRvQeqYueu6QhY51IE + plGHgZ8Esbd3js2I58YXxfMTVQWWsQ7bbI1pzKJ9ErSbALW10uHXxQuTyVkjrMM2W2Mas8Fl0PLJj62V + q6cTyYdgm60xjVm0b4TsboVt7dL6DZo8wDZbYxo1qFkPhmzt3v0HYnopeRRgHbbZGtOYCQZDtsNhF/vz + wcNEAbDOxZjGLNRwWPpaTYi4WrwArsY0phJOiOCPzZSYqw27AJEpMZtJUVerrqx2kseyqzGNaUQmRW2m + xV1t49YdlTjAsqsxjb1ArpFpcWD6YCRvxjT2IvFgBJg+GsubMY0MlSN7NAZMHo7mzZhGSq+Ho8Dk8fi2 + nBPMejwO8BIBdY7x68ZN2TwfBi1MYxzkJptH8k0UAGdHnRHiZ+f2q46HeSSgb2iAFqYxiuYrMkDnJamb + 77zceaFh2EAL0xiCXLRfkgqRh0vqa3J3fC8XRYAGaGEaQ5ALyxH0LADAS4Ys4LbC9kVJ0O9XZQcNtDu9 + KgsQQF4+RvNl6ZDtdiTo7PkQrQKA1pEwoh9MdIMzqsmYYVBAU9rZvhfGBQC4ptpOp28NA/xoKkTNIeC2 + 2fHVWidk39DA7vB0sS5ASGsANYIfTsZR8wn+CH46G0f9NBoj+PF0L9Rzh9bDlxx+Pi92/AckFVhlRjRc + UAAAAABJRU5ErkJggg== + + + + 17, 17 + + + 17, 17 + + \ No newline at end of file diff --git a/EncryptPad/Form1.cs b/EncryptPad/Form1.cs index d88a875..adb9aa8 100644 --- a/EncryptPad/Form1.cs +++ b/EncryptPad/Form1.cs @@ -541,9 +541,8 @@ private void contextMenuStrip1_Opening(object sender, CancelEventArgs e) private void оПрограммеToolStripMenuItem_Click(object sender, EventArgs e) { - MessageBoxCenter.PrepToCenterMessageBoxOnForm(this); - MessageBox.Show("EncryptPad v0.1 \nBuilt on MVSC 2015\nDeveloped by Sigmanor", "", - MessageBoxButtons.OK, MessageBoxIcon.Asterisk); + AboutFrom a = new AboutFrom(); + a.ShowDialog(this); } private void выделитьВсеToolStripMenuItem1_Click(object sender, EventArgs e)