diff --git a/Crypto Notepad/Form1.Designer.cs b/Crypto Notepad/Form1.Designer.cs index 96ec3e3..16beb4e 100644 --- a/Crypto Notepad/Form1.Designer.cs +++ b/Crypto Notepad/Form1.Designer.cs @@ -96,12 +96,13 @@ public void InitializeComponent() this.pictureBox4 = new System.Windows.Forms.PictureBox(); this.pictureBox3 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.pictureBox13 = new System.Windows.Forms.PictureBox(); this.searchTextBox = new System.Windows.Forms.TextBox(); this.chkMatchCase = new System.Windows.Forms.CheckBox(); this.chkMatchWholeWord = new System.Windows.Forms.CheckBox(); this.panel1 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); - this.pictureBox13 = new System.Windows.Forms.PictureBox(); + this.lockToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.customRTB = new Crypto_Notepad.CustomRichTextBox(); this.MainMenu.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); @@ -118,9 +119,9 @@ public void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit(); this.SuspendLayout(); // // MainMenu @@ -155,6 +156,7 @@ public void InitializeComponent() this.файлToolStripMenuItem.Name = "файлToolStripMenuItem"; this.файлToolStripMenuItem.Size = new System.Drawing.Size(36, 24); this.файлToolStripMenuItem.Text = "File"; + this.файлToolStripMenuItem.DropDownOpened += new System.EventHandler(this.файлToolStripMenuItem_DropDownOpened); // // newToolStripMenuItem // @@ -349,6 +351,7 @@ public void InitializeComponent() // this.сервисToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.changeKeyToolStripMenuItem, + this.lockToolStripMenuItem, this.settingsToolStripMenuItem}); this.сервисToolStripMenuItem.Name = "сервисToolStripMenuItem"; this.сервисToolStripMenuItem.Size = new System.Drawing.Size(48, 24); @@ -358,14 +361,14 @@ public void InitializeComponent() // changeKeyToolStripMenuItem // this.changeKeyToolStripMenuItem.Name = "changeKeyToolStripMenuItem"; - this.changeKeyToolStripMenuItem.Size = new System.Drawing.Size(139, 22); + this.changeKeyToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.changeKeyToolStripMenuItem.Text = "Change Key"; this.changeKeyToolStripMenuItem.Click += new System.EventHandler(this.changeKeyToolStripMenuItem_Click); // // settingsToolStripMenuItem // this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; - this.settingsToolStripMenuItem.Size = new System.Drawing.Size(139, 22); + this.settingsToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.settingsToolStripMenuItem.Text = "Settings"; this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click); // @@ -382,6 +385,7 @@ public void InitializeComponent() // documentationToolStripMenuItem // this.documentationToolStripMenuItem.Name = "documentationToolStripMenuItem"; + this.documentationToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F1; this.documentationToolStripMenuItem.Size = new System.Drawing.Size(187, 22); this.documentationToolStripMenuItem.Text = "Documentation"; this.documentationToolStripMenuItem.Click += new System.EventHandler(this.documentationToolStripMenuItem_Click); @@ -721,6 +725,19 @@ public void InitializeComponent() this.pictureBox1.MouseLeave += new System.EventHandler(this.pictureBox1_MouseLeave); this.pictureBox1.MouseHover += new System.EventHandler(this.pictureBox1_MouseHover); // + // pictureBox13 + // + this.pictureBox13.Cursor = System.Windows.Forms.Cursors.Hand; + this.pictureBox13.Image = global::Crypto_Notepad.Properties.Resources.lock_icon; + this.pictureBox13.Location = new System.Drawing.Point(260, 3); + this.pictureBox13.Name = "pictureBox13"; + this.pictureBox13.Size = new System.Drawing.Size(16, 16); + this.pictureBox13.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBox13.TabIndex = 15; + this.pictureBox13.TabStop = false; + this.toolTip1.SetToolTip(this.pictureBox13, "Lock"); + this.pictureBox13.Click += new System.EventHandler(this.pictureBox13_Click); + // // searchTextBox // this.searchTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -793,18 +810,12 @@ public void InitializeComponent() this.panel2.Size = new System.Drawing.Size(691, 23); this.panel2.TabIndex = 14; // - // pictureBox13 + // lockToolStripMenuItem // - this.pictureBox13.Cursor = System.Windows.Forms.Cursors.Hand; - this.pictureBox13.Image = global::Crypto_Notepad.Properties.Resources.lock_icon; - this.pictureBox13.Location = new System.Drawing.Point(260, 3); - this.pictureBox13.Name = "pictureBox13"; - this.pictureBox13.Size = new System.Drawing.Size(16, 16); - this.pictureBox13.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; - this.pictureBox13.TabIndex = 15; - this.pictureBox13.TabStop = false; - this.toolTip1.SetToolTip(this.pictureBox13, "Lock"); - this.pictureBox13.Click += new System.EventHandler(this.pictureBox13_Click); + this.lockToolStripMenuItem.Name = "lockToolStripMenuItem"; + this.lockToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.lockToolStripMenuItem.Text = "Lock"; + this.lockToolStripMenuItem.Click += new System.EventHandler(this.lockToolStripMenuItem_Click); // // customRTB // @@ -864,11 +875,11 @@ public void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -949,6 +960,7 @@ public void InitializeComponent() private System.Windows.Forms.PictureBox pictureBox5; private System.Windows.Forms.PictureBox pictureBox12; private System.Windows.Forms.PictureBox pictureBox13; + private System.Windows.Forms.ToolStripMenuItem lockToolStripMenuItem; } } diff --git a/Crypto Notepad/SettingsForm.Designer.cs b/Crypto Notepad/SettingsForm.Designer.cs index 424f9ae..c1671af 100644 --- a/Crypto Notepad/SettingsForm.Designer.cs +++ b/Crypto Notepad/SettingsForm.Designer.cs @@ -53,11 +53,11 @@ private void InitializeComponent() this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.tabPage3 = new System.Windows.Forms.TabPage(); + this.checkBox4 = new System.Windows.Forms.CheckBox(); this.checkBox3 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button1 = new System.Windows.Forms.Button(); - this.checkBox4 = new System.Windows.Forms.CheckBox(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.tabPage2.SuspendLayout(); @@ -327,6 +327,16 @@ private void InitializeComponent() this.tabPage3.Text = "Application"; this.tabPage3.UseVisualStyleBackColor = true; // + // checkBox4 + // + this.checkBox4.AutoSize = true; + this.checkBox4.Location = new System.Drawing.Point(7, 99); + this.checkBox4.Name = "checkBox4"; + this.checkBox4.Size = new System.Drawing.Size(128, 17); + this.checkBox4.TabIndex = 3; + this.checkBox4.Text = "Auto-lock on minimize"; + this.checkBox4.UseVisualStyleBackColor = true; + // // checkBox3 // this.checkBox3.AutoSize = true; @@ -367,16 +377,6 @@ private void InitializeComponent() this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // - // checkBox4 - // - this.checkBox4.AutoSize = true; - this.checkBox4.Location = new System.Drawing.Point(7, 99); - this.checkBox4.Name = "checkBox4"; - this.checkBox4.Size = new System.Drawing.Size(128, 17); - this.checkBox4.TabIndex = 3; - this.checkBox4.Text = "Auto-lock on minimize"; - this.checkBox4.UseVisualStyleBackColor = true; - // // SettingsForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -392,7 +392,6 @@ private void InitializeComponent() this.Name = "SettingsForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Settings"; - this.TopMost = true; this.Load += new System.EventHandler(this.SettingsForm_Load); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false);