From c045a74b1bb564e603df0c3b71945172c2c95aa8 Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Fri, 15 Jan 2016 18:17:12 +0200 Subject: [PATCH] Enter key and Change key windows redesign --- Crypto Notepad/ChangeKeyForm.Designer.cs | 63 +++++++++++++++++------- Crypto Notepad/Form2.Designer.cs | 59 ++++++++++++++++++---- 2 files changed, 96 insertions(+), 26 deletions(-) diff --git a/Crypto Notepad/ChangeKeyForm.Designer.cs b/Crypto Notepad/ChangeKeyForm.Designer.cs index bee3097..0421b8f 100644 --- a/Crypto Notepad/ChangeKeyForm.Designer.cs +++ b/Crypto Notepad/ChangeKeyForm.Designer.cs @@ -33,32 +33,36 @@ private void InitializeComponent() this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); + this.panel1 = new System.Windows.Forms.Panel(); + this.pictureBox3 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // textBox1 // - this.textBox1.Location = new System.Drawing.Point(70, 12); + this.textBox1.Location = new System.Drawing.Point(120, 9); this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(116, 20); + this.textBox1.Size = new System.Drawing.Size(100, 20); this.textBox1.TabIndex = 0; this.textBox1.UseSystemPasswordChar = true; // // textBox2 // - this.textBox2.Location = new System.Drawing.Point(70, 50); + this.textBox2.Location = new System.Drawing.Point(120, 43); this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(116, 20); + this.textBox2.Size = new System.Drawing.Size(100, 20); this.textBox2.TabIndex = 1; this.textBox2.UseSystemPasswordChar = true; // // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(12, 15); + this.label1.Location = new System.Drawing.Point(61, 12); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(47, 13); this.label1.TabIndex = 2; @@ -67,7 +71,7 @@ private void InitializeComponent() // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(12, 53); + this.label2.Location = new System.Drawing.Point(61, 46); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(53, 13); this.label2.TabIndex = 3; @@ -75,7 +79,7 @@ private void InitializeComponent() // // button1 // - this.button1.Location = new System.Drawing.Point(142, 79); + this.button1.Location = new System.Drawing.Point(182, 82); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 4; @@ -83,12 +87,38 @@ private void InitializeComponent() this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.pictureBox3); + this.panel1.Controls.Add(this.pictureBox2); + this.panel1.Controls.Add(this.label1); + this.panel1.Controls.Add(this.pictureBox1); + this.panel1.Controls.Add(this.textBox1); + this.panel1.Controls.Add(this.textBox2); + this.panel1.Controls.Add(this.label2); + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(262, 75); + this.panel1.TabIndex = 6; + // + // pictureBox3 + // + this.pictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pictureBox3.Image = global::Crypto_Notepad.Properties.Resources.gnupg_keys; + this.pictureBox3.Location = new System.Drawing.Point(8, 12); + this.pictureBox3.Name = "pictureBox3"; + this.pictureBox3.Size = new System.Drawing.Size(47, 47); + this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.pictureBox3.TabIndex = 7; + this.pictureBox3.TabStop = false; + // // pictureBox2 // this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBox2.Cursor = System.Windows.Forms.Cursors.Hand; this.pictureBox2.Image = global::Crypto_Notepad.Properties.Resources.eye; - this.pictureBox2.Location = new System.Drawing.Point(185, 50); + this.pictureBox2.Location = new System.Drawing.Point(219, 43); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(32, 20); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; @@ -101,7 +131,7 @@ private void InitializeComponent() this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand; this.pictureBox1.Image = global::Crypto_Notepad.Properties.Resources.eye; - this.pictureBox1.Location = new System.Drawing.Point(185, 12); + this.pictureBox1.Location = new System.Drawing.Point(219, 9); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(32, 20); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; @@ -113,14 +143,9 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(232, 110); - this.Controls.Add(this.pictureBox2); - this.Controls.Add(this.pictureBox1); + this.ClientSize = new System.Drawing.Size(263, 111); + this.Controls.Add(this.panel1); this.Controls.Add(this.button1); - this.Controls.Add(this.label2); - this.Controls.Add(this.label1); - this.Controls.Add(this.textBox2); - this.Controls.Add(this.textBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; @@ -128,10 +153,12 @@ private void InitializeComponent() this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Change Key"; this.Load += new System.EventHandler(this.ChangeKeyForm_Load); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); - this.PerformLayout(); } @@ -144,5 +171,7 @@ private void InitializeComponent() private System.Windows.Forms.Button button1; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.PictureBox pictureBox3; } } \ No newline at end of file diff --git a/Crypto Notepad/Form2.Designer.cs b/Crypto Notepad/Form2.Designer.cs index 5e85530..9220d3d 100644 --- a/Crypto Notepad/Form2.Designer.cs +++ b/Crypto Notepad/Form2.Designer.cs @@ -33,14 +33,19 @@ private void InitializeComponent() this.button1 = new System.Windows.Forms.Button(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.panel1 = new System.Windows.Forms.Panel(); + this.pictureBox2 = new System.Windows.Forms.PictureBox(); + this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // // textBox1 // - this.textBox1.Location = new System.Drawing.Point(12, 12); + this.textBox1.Location = new System.Drawing.Point(64, 39); this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(116, 20); + this.textBox1.Size = new System.Drawing.Size(100, 20); this.textBox1.TabIndex = 0; this.textBox1.UseSystemPasswordChar = true; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); @@ -49,7 +54,7 @@ private void InitializeComponent() // button1 // this.button1.Enabled = false; - this.button1.Location = new System.Drawing.Point(70, 41); + this.button1.Location = new System.Drawing.Point(111, 79); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 1; @@ -62,7 +67,7 @@ private void InitializeComponent() this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand; this.pictureBox1.Image = global::Crypto_Notepad.Properties.Resources.eye; - this.pictureBox1.Location = new System.Drawing.Point(127, 12); + this.pictureBox1.Location = new System.Drawing.Point(163, 39); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(18, 20); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; @@ -71,26 +76,59 @@ private void InitializeComponent() this.toolTip1.SetToolTip(this.pictureBox1, "Show key"); this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.pictureBox2); + this.panel1.Controls.Add(this.label1); + this.panel1.Controls.Add(this.textBox1); + this.panel1.Controls.Add(this.pictureBox1); + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(191, 73); + this.panel1.TabIndex = 5; + // + // pictureBox2 + // + this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pictureBox2.Image = global::Crypto_Notepad.Properties.Resources.key_solid; + this.pictureBox2.Location = new System.Drawing.Point(8, 12); + this.pictureBox2.Name = "pictureBox2"; + this.pictureBox2.Size = new System.Drawing.Size(47, 47); + this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.pictureBox2.TabIndex = 6; + this.pictureBox2.TabStop = false; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(61, 12); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(125, 13); + this.label1.TabIndex = 6; + this.label1.Text = "Enter the encryption key:"; + // // Form2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(158, 73); - this.Controls.Add(this.pictureBox1); + this.ClientSize = new System.Drawing.Size(191, 107); + this.Controls.Add(this.panel1); this.Controls.Add(this.button1); - this.Controls.Add(this.textBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Form2"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Enter the key"; + this.Text = "Crypto Notepad"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form2_FormClosing); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form2_FormClosed); this.Load += new System.EventHandler(this.Form2_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.ResumeLayout(false); - this.PerformLayout(); } @@ -100,5 +138,8 @@ private void InitializeComponent() private System.Windows.Forms.Button button1; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.ToolTip toolTip1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.PictureBox pictureBox2; } } \ No newline at end of file