diff --git a/Crypto Notepad/App.config b/Crypto Notepad/App.config
index cf75397..5b81458 100644
--- a/Crypto Notepad/App.config
+++ b/Crypto Notepad/App.config
@@ -63,34 +63,34 @@
False
-
+
False
-
+
240, 240, 240
-
+
164, 164, 164
-
+
False
-
+
164, 164, 164
-
+
Solid
-
+
False
-
+
164, 164, 164
-
+
Solid
-
+
Enable
@@ -135,16 +135,16 @@
False
-
+
False
-
+
164, 164, 164
-
+
Right
-
+
Solid
diff --git a/Crypto Notepad/ChangeKeyForm.Designer.cs b/Crypto Notepad/ChangeKeyForm.Designer.cs
index 2f87932..2519b54 100644
--- a/Crypto Notepad/ChangeKeyForm.Designer.cs
+++ b/Crypto Notepad/ChangeKeyForm.Designer.cs
@@ -28,141 +28,152 @@ protected override void Dispose(bool disposing)
///
private void InitializeComponent()
{
- this.txtOldKey = new System.Windows.Forms.TextBox();
- this.txtNewKey = new System.Windows.Forms.TextBox();
- this.lblOldKey = new System.Windows.Forms.Label();
- this.lblNewKey = new System.Windows.Forms.Label();
- this.btnAccept = new System.Windows.Forms.Button();
- this.pnlMain = new System.Windows.Forms.Panel();
- this.picLock = new System.Windows.Forms.PictureBox();
- this.picNewKey = new System.Windows.Forms.PictureBox();
- this.picOldKey = new System.Windows.Forms.PictureBox();
- this.lblStatus = new System.Windows.Forms.Label();
- this.pnlMain.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.picLock)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.picNewKey)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.picOldKey)).BeginInit();
+ this.oldKeyTextBox = new System.Windows.Forms.TextBox();
+ this.newKeyTextBox = new System.Windows.Forms.TextBox();
+ this.acceptButton = new System.Windows.Forms.Button();
+ this.mainPanel = new System.Windows.Forms.Panel();
+ this.oldKeyPlaceholder = new System.Windows.Forms.Label();
+ this.newKeyPlaceholder = new System.Windows.Forms.Label();
+ this.statusLabel = new System.Windows.Forms.Label();
+ this.lockPictureBox = new System.Windows.Forms.PictureBox();
+ this.showNewKeyPictureBox = new System.Windows.Forms.PictureBox();
+ this.showOldKeyPictureBox = new System.Windows.Forms.PictureBox();
+ this.mainPanel.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.showNewKeyPictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.showOldKeyPictureBox)).BeginInit();
this.SuspendLayout();
//
- // txtOldKey
+ // oldKeyTextBox
//
- this.txtOldKey.Location = new System.Drawing.Point(120, 9);
- this.txtOldKey.Name = "txtOldKey";
- this.txtOldKey.Size = new System.Drawing.Size(121, 20);
- this.txtOldKey.TabIndex = 0;
- this.txtOldKey.UseSystemPasswordChar = true;
- this.txtOldKey.TextChanged += new System.EventHandler(this.TxtOldKey_TextChanged);
+ this.oldKeyTextBox.Location = new System.Drawing.Point(63, 12);
+ this.oldKeyTextBox.Name = "oldKeyTextBox";
+ this.oldKeyTextBox.Size = new System.Drawing.Size(177, 22);
+ this.oldKeyTextBox.TabIndex = 0;
+ this.oldKeyTextBox.UseSystemPasswordChar = true;
+ this.oldKeyTextBox.TextChanged += new System.EventHandler(this.OldKeyTextBox_TextChanged);
+ this.oldKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OldKeyTextBox_KeyDown);
//
- // txtNewKey
+ // newKeyTextBox
//
- this.txtNewKey.Location = new System.Drawing.Point(120, 43);
- this.txtNewKey.Name = "txtNewKey";
- this.txtNewKey.Size = new System.Drawing.Size(121, 20);
- this.txtNewKey.TabIndex = 1;
- this.txtNewKey.UseSystemPasswordChar = true;
- this.txtNewKey.TextChanged += new System.EventHandler(this.TxtNewKey_TextChanged);
+ this.newKeyTextBox.Location = new System.Drawing.Point(63, 37);
+ this.newKeyTextBox.Name = "newKeyTextBox";
+ this.newKeyTextBox.Size = new System.Drawing.Size(177, 22);
+ this.newKeyTextBox.TabIndex = 1;
+ this.newKeyTextBox.UseSystemPasswordChar = true;
+ this.newKeyTextBox.TextChanged += new System.EventHandler(this.NewKeyTextBox_TextChanged);
+ this.newKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NewKeyTextBox_KeyDown);
+ this.newKeyTextBox.Leave += new System.EventHandler(this.NewKeyTextBox_Leave);
//
- // lblOldKey
+ // acceptButton
//
- this.lblOldKey.AutoSize = true;
- this.lblOldKey.Location = new System.Drawing.Point(61, 12);
- this.lblOldKey.Name = "lblOldKey";
- this.lblOldKey.Size = new System.Drawing.Size(47, 13);
- this.lblOldKey.TabIndex = 2;
- this.lblOldKey.Text = "Old Key:";
+ this.acceptButton.Enabled = false;
+ this.acceptButton.Location = new System.Drawing.Point(212, 79);
+ this.acceptButton.Name = "acceptButton";
+ this.acceptButton.Size = new System.Drawing.Size(53, 23);
+ this.acceptButton.TabIndex = 4;
+ this.acceptButton.Text = "Accept";
+ this.acceptButton.UseVisualStyleBackColor = true;
+ this.acceptButton.Click += new System.EventHandler(this.AcceptButton_Click);
//
- // lblNewKey
+ // mainPanel
//
- this.lblNewKey.AutoSize = true;
- this.lblNewKey.Location = new System.Drawing.Point(61, 46);
- this.lblNewKey.Name = "lblNewKey";
- this.lblNewKey.Size = new System.Drawing.Size(53, 13);
- this.lblNewKey.TabIndex = 3;
- this.lblNewKey.Text = "New Key:";
+ this.mainPanel.BackColor = System.Drawing.Color.White;
+ this.mainPanel.Controls.Add(this.oldKeyPlaceholder);
+ this.mainPanel.Controls.Add(this.newKeyPlaceholder);
+ this.mainPanel.Controls.Add(this.lockPictureBox);
+ this.mainPanel.Controls.Add(this.showNewKeyPictureBox);
+ this.mainPanel.Controls.Add(this.showOldKeyPictureBox);
+ this.mainPanel.Controls.Add(this.oldKeyTextBox);
+ this.mainPanel.Controls.Add(this.newKeyTextBox);
+ this.mainPanel.Dock = System.Windows.Forms.DockStyle.Top;
+ this.mainPanel.Location = new System.Drawing.Point(0, 0);
+ this.mainPanel.Name = "mainPanel";
+ this.mainPanel.Size = new System.Drawing.Size(269, 75);
+ this.mainPanel.TabIndex = 6;
//
- // btnAccept
+ // oldKeyPlaceholder
//
- this.btnAccept.Enabled = false;
- this.btnAccept.Location = new System.Drawing.Point(212, 81);
- this.btnAccept.Name = "btnAccept";
- this.btnAccept.Size = new System.Drawing.Size(53, 23);
- this.btnAccept.TabIndex = 4;
- this.btnAccept.Text = "Accept";
- this.btnAccept.UseVisualStyleBackColor = true;
- this.btnAccept.Click += new System.EventHandler(this.BtnAccept_Click);
+ this.oldKeyPlaceholder.AutoSize = true;
+ this.oldKeyPlaceholder.Cursor = System.Windows.Forms.Cursors.IBeam;
+ this.oldKeyPlaceholder.ForeColor = System.Drawing.Color.DarkGray;
+ this.oldKeyPlaceholder.Location = new System.Drawing.Point(67, 16);
+ this.oldKeyPlaceholder.Name = "oldKeyPlaceholder";
+ this.oldKeyPlaceholder.Size = new System.Drawing.Size(46, 13);
+ this.oldKeyPlaceholder.TabIndex = 8;
+ this.oldKeyPlaceholder.Text = "Old key";
+ this.oldKeyPlaceholder.Click += new System.EventHandler(this.OldKeyPlaceholder_Click);
//
- // pnlMain
+ // newKeyPlaceholder
//
- this.pnlMain.BackColor = System.Drawing.Color.White;
- this.pnlMain.Controls.Add(this.picLock);
- this.pnlMain.Controls.Add(this.picNewKey);
- this.pnlMain.Controls.Add(this.lblOldKey);
- this.pnlMain.Controls.Add(this.picOldKey);
- this.pnlMain.Controls.Add(this.txtOldKey);
- this.pnlMain.Controls.Add(this.txtNewKey);
- this.pnlMain.Controls.Add(this.lblNewKey);
- this.pnlMain.Location = new System.Drawing.Point(0, 0);
- this.pnlMain.Name = "pnlMain";
- this.pnlMain.Size = new System.Drawing.Size(268, 75);
- this.pnlMain.TabIndex = 6;
+ this.newKeyPlaceholder.AutoSize = true;
+ this.newKeyPlaceholder.Cursor = System.Windows.Forms.Cursors.IBeam;
+ this.newKeyPlaceholder.ForeColor = System.Drawing.Color.DarkGray;
+ this.newKeyPlaceholder.Location = new System.Drawing.Point(67, 41);
+ this.newKeyPlaceholder.Name = "newKeyPlaceholder";
+ this.newKeyPlaceholder.Size = new System.Drawing.Size(50, 13);
+ this.newKeyPlaceholder.TabIndex = 2;
+ this.newKeyPlaceholder.Text = "New key";
+ this.newKeyPlaceholder.Click += new System.EventHandler(this.NewKeyPlaceholder_Click);
//
- // picLock
+ // statusLabel
//
- this.picLock.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.picLock.Image = global::Crypto_Notepad.Properties.Resources.big_lock;
- this.picLock.Location = new System.Drawing.Point(8, 12);
- this.picLock.Name = "picLock";
- this.picLock.Size = new System.Drawing.Size(47, 47);
- this.picLock.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.picLock.TabIndex = 7;
- this.picLock.TabStop = false;
+ this.statusLabel.AutoSize = true;
+ this.statusLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.statusLabel.ForeColor = System.Drawing.Color.Black;
+ this.statusLabel.Location = new System.Drawing.Point(5, 81);
+ this.statusLabel.Name = "statusLabel";
+ this.statusLabel.Size = new System.Drawing.Size(42, 17);
+ this.statusLabel.TabIndex = 7;
+ this.statusLabel.Text = "status";
+ this.statusLabel.Visible = false;
//
- // picNewKey
+ // lockPictureBox
//
- this.picNewKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.picNewKey.Cursor = System.Windows.Forms.Cursors.Hand;
- this.picNewKey.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.picNewKey.Location = new System.Drawing.Point(247, 43);
- this.picNewKey.Name = "picNewKey";
- this.picNewKey.Size = new System.Drawing.Size(18, 20);
- this.picNewKey.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.picNewKey.TabIndex = 5;
- this.picNewKey.TabStop = false;
- this.picNewKey.Click += new System.EventHandler(this.PicNewKeyEyeIcon_Click);
+ this.lockPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.gnupg_keys;
+ this.lockPictureBox.Location = new System.Drawing.Point(8, 12);
+ this.lockPictureBox.Name = "lockPictureBox";
+ this.lockPictureBox.Size = new System.Drawing.Size(47, 47);
+ this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.lockPictureBox.TabIndex = 7;
+ this.lockPictureBox.TabStop = false;
//
- // picOldKey
+ // showNewKeyPictureBox
//
- this.picOldKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.picOldKey.Cursor = System.Windows.Forms.Cursors.Hand;
- this.picOldKey.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.picOldKey.Location = new System.Drawing.Point(247, 9);
- this.picOldKey.Name = "picOldKey";
- this.picOldKey.Size = new System.Drawing.Size(18, 20);
- this.picOldKey.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.picOldKey.TabIndex = 5;
- this.picOldKey.TabStop = false;
- this.picOldKey.Click += new System.EventHandler(this.PicOldKeyEyeIcon_Click);
+ this.showNewKeyPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.showNewKeyPictureBox.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.showNewKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
+ this.showNewKeyPictureBox.Location = new System.Drawing.Point(239, 37);
+ this.showNewKeyPictureBox.Name = "showNewKeyPictureBox";
+ this.showNewKeyPictureBox.Size = new System.Drawing.Size(18, 22);
+ this.showNewKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.showNewKeyPictureBox.TabIndex = 5;
+ this.showNewKeyPictureBox.TabStop = false;
+ this.showNewKeyPictureBox.Click += new System.EventHandler(this.ShowNewKeyPictureBox_Click);
//
- // lblStatus
+ // showOldKeyPictureBox
//
- this.lblStatus.AutoSize = true;
- this.lblStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.lblStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.lblStatus.Location = new System.Drawing.Point(5, 87);
- this.lblStatus.Name = "lblStatus";
- this.lblStatus.Size = new System.Drawing.Size(43, 16);
- this.lblStatus.TabIndex = 7;
- this.lblStatus.Text = "status";
- this.lblStatus.Visible = false;
+ this.showOldKeyPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.showOldKeyPictureBox.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.showOldKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
+ this.showOldKeyPictureBox.Location = new System.Drawing.Point(239, 12);
+ this.showOldKeyPictureBox.Name = "showOldKeyPictureBox";
+ this.showOldKeyPictureBox.Size = new System.Drawing.Size(18, 22);
+ this.showOldKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.showOldKeyPictureBox.TabIndex = 5;
+ this.showOldKeyPictureBox.TabStop = false;
+ this.showOldKeyPictureBox.Click += new System.EventHandler(this.ShowOldKeyPictureBox_Click);
//
// ChangeKeyForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(269, 111);
- this.Controls.Add(this.lblStatus);
- this.Controls.Add(this.pnlMain);
- this.Controls.Add(this.btnAccept);
+ this.ClientSize = new System.Drawing.Size(269, 106);
+ this.Controls.Add(this.statusLabel);
+ this.Controls.Add(this.mainPanel);
+ this.Controls.Add(this.acceptButton);
+ this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
@@ -170,11 +181,11 @@ private void InitializeComponent()
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Change Key";
- this.pnlMain.ResumeLayout(false);
- this.pnlMain.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.picLock)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.picNewKey)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.picOldKey)).EndInit();
+ this.mainPanel.ResumeLayout(false);
+ this.mainPanel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.showNewKeyPictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.showOldKeyPictureBox)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -182,15 +193,15 @@ private void InitializeComponent()
#endregion
- private System.Windows.Forms.TextBox txtOldKey;
- private System.Windows.Forms.TextBox txtNewKey;
- private System.Windows.Forms.Label lblOldKey;
- private System.Windows.Forms.Label lblNewKey;
- private System.Windows.Forms.Button btnAccept;
- private System.Windows.Forms.PictureBox picOldKey;
- private System.Windows.Forms.PictureBox picNewKey;
- private System.Windows.Forms.Panel pnlMain;
- private System.Windows.Forms.PictureBox picLock;
- private System.Windows.Forms.Label lblStatus;
+ private System.Windows.Forms.TextBox oldKeyTextBox;
+ private System.Windows.Forms.TextBox newKeyTextBox;
+ private System.Windows.Forms.Button acceptButton;
+ private System.Windows.Forms.PictureBox showOldKeyPictureBox;
+ private System.Windows.Forms.PictureBox showNewKeyPictureBox;
+ private System.Windows.Forms.Panel mainPanel;
+ private System.Windows.Forms.PictureBox lockPictureBox;
+ private System.Windows.Forms.Label statusLabel;
+ private System.Windows.Forms.Label newKeyPlaceholder;
+ private System.Windows.Forms.Label oldKeyPlaceholder;
}
}
\ No newline at end of file
diff --git a/Crypto Notepad/ChangeKeyForm.cs b/Crypto Notepad/ChangeKeyForm.cs
index 91f8bc7..0726d37 100644
--- a/Crypto Notepad/ChangeKeyForm.cs
+++ b/Crypto Notepad/ChangeKeyForm.cs
@@ -1,4 +1,5 @@
-using System;
+using System;
+using System.Drawing;
using System.Media;
using System.Threading.Tasks;
using System.Windows.Forms;
@@ -13,77 +14,87 @@ public ChangeKeyForm()
}
/*Buttons*/
- private async void BtnAccept_Click(object sender, EventArgs e)
+ private async void AcceptButton_Click(object sender, EventArgs e)
{
- if (txtOldKey.Text == PublicVar.encryptionKey.Get() && txtOldKey.Text != txtNewKey.Text)
+ oldKeyTextBox.Focus();
+ if (oldKeyTextBox.Text == PublicVar.encryptionKey.Get() && oldKeyTextBox.Text != newKeyTextBox.Text)
{
- PublicVar.encryptionKey.Set(txtNewKey.Text);
+ PublicVar.encryptionKey.Set(newKeyTextBox.Text);
PublicVar.keyChanged = true;
- txtOldKey.Text = "";
- txtNewKey.Text = "";
- lblStatus.Text = "Key was successfully changed";
- lblStatus.Visible = true;
- btnAccept.Enabled = false;
+ oldKeyTextBox.Text = "";
+ newKeyTextBox.Text = "";
+ statusLabel.ForeColor = Color.Green;
+ statusLabel.Text = "Key was successfully changed";
+ statusLabel.Visible = true;
+ acceptButton.Enabled = false;
await Task.Delay(2000);
- lblStatus.Text = "";
- return;
+ statusLabel.Text = "";
}
-
- if (txtOldKey.Text != PublicVar.encryptionKey.Get())
+ else if (oldKeyTextBox.Text != PublicVar.encryptionKey.Get())
{
SystemSounds.Beep.Play();
- lblStatus.Text = "Invalid old key";
- lblStatus.Visible = true;
- txtOldKey.Text = "";
- txtNewKey.Text = "";
- return;
+ statusLabel.ForeColor = Color.Red;
+ statusLabel.Text = "Invalid old key";
+ statusLabel.Visible = true;
+ oldKeyTextBox.Text = "";
+ newKeyTextBox.Text = "";
+ await Task.Delay(2000);
+ statusLabel.Text = "";
}
-
- if (txtOldKey.Text == txtNewKey.Text)
+ else if(oldKeyTextBox.Text == newKeyTextBox.Text)
{
SystemSounds.Beep.Play();
- lblStatus.Text = "New key is the same as old";
- lblStatus.Visible = true;
- txtOldKey.Text = "";
- txtNewKey.Text = "";
- return;
+ statusLabel.ForeColor = Color.Red;
+ statusLabel.Text = "New key is the same as old";
+ statusLabel.Visible = true;
+ oldKeyTextBox.Text = "";
+ newKeyTextBox.Text = "";
+ await Task.Delay(2000);
+ statusLabel.Text = "";
}
}
/*Buttons*/
/*Enter keys area*/
- private void PicOldKeyEyeIcon_Click(object sender, EventArgs e)
+ private void ShowOldKeyPictureBox_Click(object sender, EventArgs e)
{
- if (txtOldKey.UseSystemPasswordChar)
+ if (oldKeyTextBox.UseSystemPasswordChar)
{
- txtOldKey.UseSystemPasswordChar = false;
- picOldKey.Image = Properties.Resources.eye;
+ oldKeyTextBox.UseSystemPasswordChar = false;
+ showOldKeyPictureBox.Image = Properties.Resources.eye;
}
else
{
- txtOldKey.UseSystemPasswordChar = true;
- picOldKey.Image = Properties.Resources.eye_half;
+ oldKeyTextBox.UseSystemPasswordChar = true;
+ showOldKeyPictureBox.Image = Properties.Resources.eye_half;
}
}
- private void PicNewKeyEyeIcon_Click(object sender, EventArgs e)
+ private void ShowNewKeyPictureBox_Click(object sender, EventArgs e)
{
- if (txtNewKey.UseSystemPasswordChar)
+ if (newKeyTextBox.UseSystemPasswordChar)
{
- txtNewKey.UseSystemPasswordChar = false;
- picNewKey.Image = Properties.Resources.eye;
+ newKeyTextBox.UseSystemPasswordChar = false;
+ showNewKeyPictureBox.Image = Properties.Resources.eye;
}
else
{
- txtNewKey.UseSystemPasswordChar = true;
- picNewKey.Image = Properties.Resources.eye_half;
+ newKeyTextBox.UseSystemPasswordChar = true;
+ showNewKeyPictureBox.Image = Properties.Resources.eye_half;
}
}
- private void TxtOldKey_TextChanged(object sender, EventArgs e)
+ private void OldKeyTextBox_TextChanged(object sender, EventArgs e)
{
- if (txtOldKey.Text.Length > 0 && txtNewKey.Text.Length > 0)
+ if (oldKeyTextBox.Text.Length > 0 & newKeyTextBox.Text.Length > 0)
+ {
+ acceptButton.Enabled = true;
+ }
+ else
+ {
+ acceptButton.Enabled = false;
+ }
{
btnAccept.Enabled = true;
}
@@ -93,17 +104,42 @@ private void TxtOldKey_TextChanged(object sender, EventArgs e)
}
}
- private void TxtNewKey_TextChanged(object sender, EventArgs e)
+ private void NewKeyTextBox_TextChanged(object sender, EventArgs e)
{
- if (txtNewKey.Text.Length > 0 && txtOldKey.Text.Length > 0)
+ if (newKeyTextBox.Text.Length > 0 & oldKeyTextBox.Text.Length > 0)
+ {
+ acceptButton.Enabled = true;
+ }
+ else
+ {
+ acceptButton.Enabled = false;
+ }
+
+ if (newKeyTextBox.Text.Length > 0)
{
btnAccept.Enabled = true;
}
else
{
btnAccept.Enabled = false;
+
+ private void NewKeyTextBox_KeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.KeyCode == Keys.Enter & acceptButton.Enabled)
+ {
+ AcceptButton_Click(sender, e);
+ }
+ }
+
+ private void OldKeyTextBox_KeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.KeyCode == Keys.Enter & acceptButton.Enabled)
+ {
+ AcceptButton_Click(sender, e);
}
}
/*Enter keys area*/
+
+
}
}
diff --git a/Crypto Notepad/EnterKeyForm.Designer.cs b/Crypto Notepad/EnterKeyForm.Designer.cs
index 158c59e..367fc19 100644
--- a/Crypto Notepad/EnterKeyForm.Designer.cs
+++ b/Crypto Notepad/EnterKeyForm.Designer.cs
@@ -29,92 +29,107 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EnterKeyForm));
- this.txtKey = new System.Windows.Forms.TextBox();
- this.btnOk = new System.Windows.Forms.Button();
- this.picShowKey = new System.Windows.Forms.PictureBox();
- this.pnlMain = new System.Windows.Forms.Panel();
- this.picLock = new System.Windows.Forms.PictureBox();
- this.lblFileName = new System.Windows.Forms.Label();
- ((System.ComponentModel.ISupportInitialize)(this.picShowKey)).BeginInit();
- this.pnlMain.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.picLock)).BeginInit();
+ this.keyTextBox = new System.Windows.Forms.TextBox();
+ this.okButton = new System.Windows.Forms.Button();
+ this.mainPanel = new System.Windows.Forms.Panel();
+ this.fileNameLabel = new System.Windows.Forms.Label();
+ this.encryptionKeyPlaceholder = new System.Windows.Forms.Label();
+ this.lockPictureBox = new System.Windows.Forms.PictureBox();
+ this.showKeyPictureBox = new System.Windows.Forms.PictureBox();
+ this.mainPanel.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.showKeyPictureBox)).BeginInit();
this.SuspendLayout();
//
- // txtKey
+ // keyTextBox
//
- this.txtKey.Location = new System.Drawing.Point(64, 39);
- this.txtKey.Name = "txtKey";
- this.txtKey.Size = new System.Drawing.Size(177, 20);
- this.txtKey.TabIndex = 0;
- this.txtKey.UseSystemPasswordChar = true;
- this.txtKey.TextChanged += new System.EventHandler(this.TxtKey_TextChanged);
- this.txtKey.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TxtKey_KeyDown);
+ this.keyTextBox.Location = new System.Drawing.Point(64, 37);
+ this.keyTextBox.Name = "keyTextBox";
+ this.keyTextBox.Size = new System.Drawing.Size(177, 22);
+ this.keyTextBox.TabIndex = 0;
+ this.keyTextBox.UseSystemPasswordChar = true;
+ this.keyTextBox.TextChanged += new System.EventHandler(this.KeyTextBox_TextChanged);
+ this.keyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KeyTextBox_KeyDown);
//
- // btnOk
+ // okButton
//
- this.btnOk.Enabled = false;
- this.btnOk.Location = new System.Drawing.Point(190, 79);
- this.btnOk.Name = "btnOk";
- this.btnOk.Size = new System.Drawing.Size(75, 23);
- this.btnOk.TabIndex = 1;
- this.btnOk.Text = "OK";
- this.btnOk.UseVisualStyleBackColor = true;
- this.btnOk.Click += new System.EventHandler(this.BtnOk_Click);
+ this.okButton.Enabled = false;
+ this.okButton.Location = new System.Drawing.Point(190, 80);
+ this.okButton.Name = "okButton";
+ this.okButton.Size = new System.Drawing.Size(75, 23);
+ this.okButton.TabIndex = 1;
+ this.okButton.Text = "OK";
+ this.okButton.UseVisualStyleBackColor = true;
+ this.okButton.Click += new System.EventHandler(this.OkButton_Click);
//
- // picShowKey
+ // mainPanel
//
- this.picShowKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.picShowKey.Cursor = System.Windows.Forms.Cursors.Hand;
- this.picShowKey.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.picShowKey.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.picShowKey.Location = new System.Drawing.Point(247, 39);
- this.picShowKey.Name = "picShowKey";
- this.picShowKey.Size = new System.Drawing.Size(18, 20);
- this.picShowKey.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.picShowKey.TabIndex = 3;
- this.picShowKey.TabStop = false;
- this.picShowKey.Click += new System.EventHandler(this.KeyEyeIcon_Click);
+ this.mainPanel.BackColor = System.Drawing.Color.White;
+ this.mainPanel.Controls.Add(this.encryptionKeyPlaceholder);
+ this.mainPanel.Controls.Add(this.lockPictureBox);
+ this.mainPanel.Controls.Add(this.fileNameLabel);
+ this.mainPanel.Controls.Add(this.keyTextBox);
+ this.mainPanel.Controls.Add(this.showKeyPictureBox);
+ this.mainPanel.Dock = System.Windows.Forms.DockStyle.Top;
+ this.mainPanel.Location = new System.Drawing.Point(0, 0);
+ this.mainPanel.Name = "mainPanel";
+ this.mainPanel.Size = new System.Drawing.Size(269, 75);
+ this.mainPanel.TabIndex = 5;
//
- // pnlMain
+ // fileNameLabel
//
- this.pnlMain.BackColor = System.Drawing.Color.White;
- this.pnlMain.Controls.Add(this.picLock);
- this.pnlMain.Controls.Add(this.lblFileName);
- this.pnlMain.Controls.Add(this.txtKey);
- this.pnlMain.Controls.Add(this.picShowKey);
- this.pnlMain.Location = new System.Drawing.Point(0, 0);
- this.pnlMain.Name = "pnlMain";
- this.pnlMain.Size = new System.Drawing.Size(269, 73);
- this.pnlMain.TabIndex = 5;
+ this.fileNameLabel.AutoEllipsis = true;
+ this.fileNameLabel.Location = new System.Drawing.Point(61, 12);
+ this.fileNameLabel.Name = "fileNameLabel";
+ this.fileNameLabel.Size = new System.Drawing.Size(196, 13);
+ this.fileNameLabel.TabIndex = 6;
+ this.fileNameLabel.Text = "File name";
+ this.fileNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // picLock
+ // encryptionKeyPlaceholder
//
- this.picLock.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.picLock.Image = global::Crypto_Notepad.Properties.Resources.big_lock;
- this.picLock.Location = new System.Drawing.Point(8, 12);
- this.picLock.Name = "picLock";
- this.picLock.Size = new System.Drawing.Size(47, 47);
- this.picLock.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.picLock.TabIndex = 6;
- this.picLock.TabStop = false;
+ this.encryptionKeyPlaceholder.AutoSize = true;
+ this.encryptionKeyPlaceholder.Cursor = System.Windows.Forms.Cursors.IBeam;
+ this.encryptionKeyPlaceholder.ForeColor = System.Drawing.Color.DarkGray;
+ this.encryptionKeyPlaceholder.Location = new System.Drawing.Point(68, 40);
+ this.encryptionKeyPlaceholder.Name = "encryptionKeyPlaceholder";
+ this.encryptionKeyPlaceholder.Size = new System.Drawing.Size(82, 13);
+ this.encryptionKeyPlaceholder.TabIndex = 9;
+ this.encryptionKeyPlaceholder.Text = "Encryption key";
//
- // lblFileName
+ // lockPictureBox
//
- this.lblFileName.AutoEllipsis = true;
- this.lblFileName.Location = new System.Drawing.Point(61, 12);
- this.lblFileName.Name = "lblFileName";
- this.lblFileName.Size = new System.Drawing.Size(196, 13);
- this.lblFileName.TabIndex = 6;
- this.lblFileName.Text = "Enter the encryption key:";
- this.lblFileName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.lockPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.key_solid;
+ this.lockPictureBox.Location = new System.Drawing.Point(8, 12);
+ this.lockPictureBox.Name = "lockPictureBox";
+ this.lockPictureBox.Size = new System.Drawing.Size(47, 47);
+ this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.lockPictureBox.TabIndex = 6;
+ this.lockPictureBox.TabStop = false;
+ //
+ // showKeyPictureBox
+ //
+ this.showKeyPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.showKeyPictureBox.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.showKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
+ this.showKeyPictureBox.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half;
+ this.showKeyPictureBox.Location = new System.Drawing.Point(240, 37);
+ this.showKeyPictureBox.Name = "showKeyPictureBox";
+ this.showKeyPictureBox.Size = new System.Drawing.Size(18, 22);
+ this.showKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.showKeyPictureBox.TabIndex = 3;
+ this.showKeyPictureBox.TabStop = false;
+ this.showKeyPictureBox.Click += new System.EventHandler(this.ShowKeyPictureBox_Click);
//
// EnterKeyForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(269, 107);
- this.Controls.Add(this.pnlMain);
- this.Controls.Add(this.btnOk);
+ this.ClientSize = new System.Drawing.Size(269, 106);
+ this.Controls.Add(this.mainPanel);
+ this.Controls.Add(this.okButton);
+ this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
@@ -125,20 +140,21 @@ private void InitializeComponent()
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.EnterKeyForm_FormClosed);
this.Load += new System.EventHandler(this.EnterKeyForm_Load);
this.Shown += new System.EventHandler(this.EnterKeyForm_Shown);
- ((System.ComponentModel.ISupportInitialize)(this.picShowKey)).EndInit();
- this.pnlMain.ResumeLayout(false);
- this.pnlMain.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.picLock)).EndInit();
+ this.mainPanel.ResumeLayout(false);
+ this.mainPanel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.showKeyPictureBox)).EndInit();
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Button btnOk;
- private System.Windows.Forms.PictureBox picShowKey;
- private System.Windows.Forms.Panel pnlMain;
- private System.Windows.Forms.Label lblFileName;
- private System.Windows.Forms.PictureBox picLock;
- public System.Windows.Forms.TextBox txtKey;
+ private System.Windows.Forms.Button okButton;
+ private System.Windows.Forms.PictureBox showKeyPictureBox;
+ private System.Windows.Forms.Panel mainPanel;
+ private System.Windows.Forms.Label fileNameLabel;
+ private System.Windows.Forms.PictureBox lockPictureBox;
+ public System.Windows.Forms.TextBox keyTextBox;
+ private System.Windows.Forms.Label encryptionKeyPlaceholder;
}
}
\ No newline at end of file
diff --git a/Crypto Notepad/EnterKeyForm.cs b/Crypto Notepad/EnterKeyForm.cs
index 9ae5ef8..2f25f0e 100644
--- a/Crypto Notepad/EnterKeyForm.cs
+++ b/Crypto Notepad/EnterKeyForm.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Windows.Forms;
namespace Crypto_Notepad
@@ -17,27 +17,28 @@ private void EnterKeyForm_FormClosed(object sender, FormClosedEventArgs e)
MainForm main = Owner as MainForm;
if (main.Visible == false)
{
+ main.trayIcon.Visible = false;
Environment.Exit(0);
}
- txtKey.Focus();
+ keyTextBox.Focus();
}
private void EnterKeyForm_Load(object sender, EventArgs e)
{
- lblFileName.Text = PublicVar.openFileName;
+ fileNameLabel.Text = PublicVar.openFileName;
Properties.Settings settings = Properties.Settings.Default;
TopMost = settings.alwaysOnTop;
}
private void EnterKeyForm_Shown(object sender, EventArgs e)
{
- lblFileName.Text = PublicVar.openFileName;
+ fileNameLabel.Text = PublicVar.openFileName;
}
/*Form Events*/
/*Enter key area*/
- private void TxtKey_TextChanged(object sender, EventArgs e)
+ private void KeyTextBox_TextChanged(object sender, EventArgs e)
{
if (txtKey.Text.Length > 0)
btnOk.Enabled = true;
@@ -45,37 +46,38 @@ private void TxtKey_TextChanged(object sender, EventArgs e)
btnOk.Enabled = false;
}
- private void TxtKey_KeyDown(object sender, KeyEventArgs e)
+ private void KeyTextBox_KeyDown(object sender, KeyEventArgs e)
{
- if (e.KeyCode == Keys.Enter && btnOk.Enabled)
+ if (e.KeyCode == Keys.Enter && okButton.Enabled)
{
- BtnOk_Click(sender, e);
+ OkButton_Click(sender, e);
}
}
- private void KeyEyeIcon_Click(object sender, EventArgs e)
+ private void ShowKeyPictureBox_Click(object sender, EventArgs e)
{
- if (txtKey.UseSystemPasswordChar)
+ if (keyTextBox.UseSystemPasswordChar)
{
- txtKey.UseSystemPasswordChar = false;
- picShowKey.Image = Properties.Resources.eye;
+ keyTextBox.UseSystemPasswordChar = false;
+ showKeyPictureBox.Image = Properties.Resources.eye;
}
else
{
- txtKey.UseSystemPasswordChar = true;
- picShowKey.Image = Properties.Resources.eye_half;
+ keyTextBox.UseSystemPasswordChar = true;
+ showKeyPictureBox.Image = Properties.Resources.eye_half;
}
}
/*Enter key area*/
/*Buttons*/
- private void BtnOk_Click(object sender, EventArgs e)
+ private void OkButton_Click(object sender, EventArgs e)
{
- TypedPassword.Value = txtKey.Text;
- txtKey.Focus();
+ TypedPassword.Value = keyTextBox.Text;
+ keyTextBox.Focus();
PublicVar.okPressed = true;
Hide();
+
}
/*Buttons*/
diff --git a/Crypto Notepad/MainForm.Designer.cs b/Crypto Notepad/MainForm.Designer.cs
index 89bbdd9..d78bed8 100644
--- a/Crypto Notepad/MainForm.Designer.cs
+++ b/Crypto Notepad/MainForm.Designer.cs
@@ -69,7 +69,7 @@ public void InitializeComponent()
this.aboutMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.debugMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.variablesMainMenu = new System.Windows.Forms.ToolStripMenuItem();
- this.insMainMenu = new System.Windows.Forms.ToolStripMenuItem();
+ this.insertMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.undoContextMenu = new System.Windows.Forms.ToolStripMenuItem();
this.redoContextMenu = new System.Windows.Forms.ToolStripMenuItem();
@@ -85,11 +85,11 @@ public void InitializeComponent()
this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
this.searchPanel = new System.Windows.Forms.TableLayoutPanel();
- this.findNextButton = new System.Windows.Forms.Button();
+ this.searchFindNextButton = new System.Windows.Forms.Button();
this.searchTextBox = new System.Windows.Forms.TextBox();
- this.wholeWordCheckBox = new System.Windows.Forms.CheckBox();
- this.caseSensitiveCheckBox = new System.Windows.Forms.CheckBox();
- this.closeSearchPanel = new System.Windows.Forms.PictureBox();
+ this.searchWholeWordCheckBox = new System.Windows.Forms.CheckBox();
+ this.searchCaseSensitiveCheckBox = new System.Windows.Forms.CheckBox();
+ this.searchCloseButton = new System.Windows.Forms.PictureBox();
this.toolbarPanel = new System.Windows.Forms.TableLayoutPanel();
this.lockToolbarButton = new System.Windows.Forms.PictureBox();
this.newToolbarButton = new System.Windows.Forms.PictureBox();
@@ -105,28 +105,28 @@ public void InitializeComponent()
this.settingsToolbarButton = new System.Windows.Forms.PictureBox();
this.alwaysOnTopToolbarButton = new System.Windows.Forms.PictureBox();
this.statusPanel = new System.Windows.Forms.StatusStrip();
- this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel();
- this.lengthStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
- this.linesStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
- this.lnStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
- this.colStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
+ this.statusPanelLabel = new System.Windows.Forms.ToolStripStatusLabel();
+ this.statusPanelLengthLabel = new System.Windows.Forms.ToolStripStatusLabel();
+ this.statusPaneLinesLabel = new System.Windows.Forms.ToolStripStatusLabel();
+ this.statusPaneLnLabel = new System.Windows.Forms.ToolStripStatusLabel();
+ this.statusPaneColLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.trayIcon = new System.Windows.Forms.NotifyIcon(this.components);
- this.mnuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.showToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.pnlEnterKey = new System.Windows.Forms.Panel();
- this.btnCloseEnterKey = new System.Windows.Forms.Button();
- this.btnOk = new System.Windows.Forms.Button();
- this.txtKey = new System.Windows.Forms.TextBox();
- this.picShowKey = new System.Windows.Forms.PictureBox();
- this.lblFileName = new System.Windows.Forms.Label();
+ this.trayMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
+ this.trayMenuShow = new System.Windows.Forms.ToolStripMenuItem();
+ this.trayMenuExit = new System.Windows.Forms.ToolStripMenuItem();
+ this.fileLockedPanel = new System.Windows.Forms.Panel();
+ this.fileLockedCloseButton = new System.Windows.Forms.Button();
+ this.fileLockedOkButton = new System.Windows.Forms.Button();
+ this.fileLockedKeyTextBox = new System.Windows.Forms.TextBox();
+ this.fileLockedShowKey = new System.Windows.Forms.PictureBox();
+ this.fileLockedLabel = new System.Windows.Forms.Label();
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.richTextBox = new Crypto_Notepad.ExRichTextBox();
- this.RTBLineNumbers = new LineNumbers.LineNumbers();
+ this.lineNumbers = new LineNumbers.LineNumbers();
this.mainMenu.SuspendLayout();
this.contextMenu.SuspendLayout();
this.searchPanel.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.closeSearchPanel)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.searchCloseButton)).BeginInit();
this.toolbarPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.lockToolbarButton)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.newToolbarButton)).BeginInit();
@@ -142,15 +142,15 @@ public void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.settingsToolbarButton)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.alwaysOnTopToolbarButton)).BeginInit();
this.statusPanel.SuspendLayout();
- this.mnuTray.SuspendLayout();
- this.pnlEnterKey.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.picShowKey)).BeginInit();
+ this.trayMenu.SuspendLayout();
+ this.fileLockedPanel.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fileLockedShowKey)).BeginInit();
this.SuspendLayout();
//
// mainMenu
//
this.mainMenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
- this.mainMenu.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.mainMenu.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileMainMenu,
this.editMainMenu,
@@ -179,7 +179,7 @@ public void InitializeComponent()
this.exitMainMenu});
this.fileMainMenu.ForeColor = System.Drawing.SystemColors.ControlText;
this.fileMainMenu.Name = "fileMainMenu";
- this.fileMainMenu.Size = new System.Drawing.Size(36, 24);
+ this.fileMainMenu.Size = new System.Drawing.Size(37, 24);
this.fileMainMenu.Text = "File";
this.fileMainMenu.DropDownOpened += new System.EventHandler(this.fileMainMenu_DropDownOpened);
//
@@ -187,7 +187,7 @@ public void InitializeComponent()
//
this.newMainMenu.Name = "newMainMenu";
this.newMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
- this.newMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.newMainMenu.Size = new System.Drawing.Size(195, 22);
this.newMainMenu.Text = "New";
this.newMainMenu.Click += new System.EventHandler(this.NewMainMenu_Click);
//
@@ -195,20 +195,20 @@ public void InitializeComponent()
//
this.openMainMenu.Name = "openMainMenu";
this.openMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
- this.openMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.openMainMenu.Size = new System.Drawing.Size(195, 22);
this.openMainMenu.Text = "Open...";
this.openMainMenu.Click += new System.EventHandler(this.OpenMainMenu_Click);
//
// mainMenuSeparator1
//
this.mainMenuSeparator1.Name = "mainMenuSeparator1";
- this.mainMenuSeparator1.Size = new System.Drawing.Size(199, 6);
+ this.mainMenuSeparator1.Size = new System.Drawing.Size(192, 6);
//
// saveMainMenu
//
this.saveMainMenu.Name = "saveMainMenu";
this.saveMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
- this.saveMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.saveMainMenu.Size = new System.Drawing.Size(195, 22);
this.saveMainMenu.Text = "Save";
this.saveMainMenu.Click += new System.EventHandler(this.SaveMainMenu_Click);
//
@@ -217,39 +217,39 @@ public void InitializeComponent()
this.saveAsMainMenu.Name = "saveAsMainMenu";
this.saveAsMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.S)));
- this.saveAsMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.saveAsMainMenu.Size = new System.Drawing.Size(195, 22);
this.saveAsMainMenu.Text = "Save As...";
this.saveAsMainMenu.Click += new System.EventHandler(this.SaveAsMainMenu_Click);
//
// mainMenuSeparator2
//
this.mainMenuSeparator2.Name = "mainMenuSeparator2";
- this.mainMenuSeparator2.Size = new System.Drawing.Size(199, 6);
+ this.mainMenuSeparator2.Size = new System.Drawing.Size(192, 6);
//
// fileLocationMainMenu
//
this.fileLocationMainMenu.Name = "fileLocationMainMenu";
- this.fileLocationMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.fileLocationMainMenu.Size = new System.Drawing.Size(195, 22);
this.fileLocationMainMenu.Text = "Open File Location";
this.fileLocationMainMenu.Click += new System.EventHandler(this.FileLocationMainMenu_Click);
//
// deleteFileMainMenu
//
this.deleteFileMainMenu.Name = "deleteFileMainMenu";
- this.deleteFileMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.deleteFileMainMenu.Size = new System.Drawing.Size(195, 22);
this.deleteFileMainMenu.Text = "Delete File";
this.deleteFileMainMenu.Click += new System.EventHandler(this.DeleteFileToolStripMenuItem_Click);
//
// mainMenuSeparator3
//
this.mainMenuSeparator3.Name = "mainMenuSeparator3";
- this.mainMenuSeparator3.Size = new System.Drawing.Size(199, 6);
+ this.mainMenuSeparator3.Size = new System.Drawing.Size(192, 6);
//
// exitMainMenu
//
this.exitMainMenu.Name = "exitMainMenu";
this.exitMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q)));
- this.exitMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.exitMainMenu.Size = new System.Drawing.Size(195, 22);
this.exitMainMenu.Text = "Exit";
this.exitMainMenu.Click += new System.EventHandler(this.ExitMainMenu_Click);
//
@@ -272,7 +272,7 @@ public void InitializeComponent()
this.clearMainMenu});
this.editMainMenu.ForeColor = System.Drawing.SystemColors.ControlText;
this.editMainMenu.Name = "editMainMenu";
- this.editMainMenu.Size = new System.Drawing.Size(40, 24);
+ this.editMainMenu.Size = new System.Drawing.Size(39, 24);
this.editMainMenu.Text = "Edit";
this.editMainMenu.DropDownOpened += new System.EventHandler(this.EditMainMenu_DropDownOpened);
//
@@ -280,7 +280,7 @@ public void InitializeComponent()
//
this.undoMainMenu.Name = "undoMainMenu";
this.undoMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
- this.undoMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.undoMainMenu.Size = new System.Drawing.Size(164, 22);
this.undoMainMenu.Text = "Undo";
this.undoMainMenu.Click += new System.EventHandler(this.UndoMainMenu_Click);
//
@@ -288,21 +288,21 @@ public void InitializeComponent()
//
this.redoMainMenu.Name = "redoMainMenu";
this.redoMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
- this.redoMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.redoMainMenu.Size = new System.Drawing.Size(164, 22);
this.redoMainMenu.Text = "Redo";
this.redoMainMenu.Click += new System.EventHandler(this.RedoMainMenu_Click);
//
// mainMenuSeparator4
//
this.mainMenuSeparator4.Name = "mainMenuSeparator4";
- this.mainMenuSeparator4.Size = new System.Drawing.Size(162, 6);
+ this.mainMenuSeparator4.Size = new System.Drawing.Size(161, 6);
//
// cutMainMenu
//
this.cutMainMenu.Enabled = false;
this.cutMainMenu.Name = "cutMainMenu";
this.cutMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
- this.cutMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.cutMainMenu.Size = new System.Drawing.Size(164, 22);
this.cutMainMenu.Text = "Cut";
this.cutMainMenu.Click += new System.EventHandler(this.CutMainMenu_Click);
//
@@ -311,7 +311,7 @@ public void InitializeComponent()
this.copyMainMenu.Enabled = false;
this.copyMainMenu.Name = "copyMainMenu";
this.copyMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
- this.copyMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.copyMainMenu.Size = new System.Drawing.Size(164, 22);
this.copyMainMenu.Text = "Copy";
this.copyMainMenu.Click += new System.EventHandler(this.CopyMainMenu_Click);
//
@@ -319,7 +319,7 @@ public void InitializeComponent()
//
this.pasteMainMenu.Name = "pasteMainMenu";
this.pasteMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
- this.pasteMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.pasteMainMenu.Size = new System.Drawing.Size(164, 22);
this.pasteMainMenu.Text = "Paste";
this.pasteMainMenu.Click += new System.EventHandler(this.PasteMainMenu_Click);
//
@@ -328,34 +328,34 @@ public void InitializeComponent()
this.deleteMainMenu.Enabled = false;
this.deleteMainMenu.Name = "deleteMainMenu";
this.deleteMainMenu.ShortcutKeys = System.Windows.Forms.Keys.Delete;
- this.deleteMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.deleteMainMenu.Size = new System.Drawing.Size(164, 22);
this.deleteMainMenu.Text = "Delete";
this.deleteMainMenu.Click += new System.EventHandler(this.DeleteMainMenu_Click);
//
// mainMenuSeparator5
//
this.mainMenuSeparator5.Name = "mainMenuSeparator5";
- this.mainMenuSeparator5.Size = new System.Drawing.Size(162, 6);
+ this.mainMenuSeparator5.Size = new System.Drawing.Size(161, 6);
//
// findMainMenu
//
this.findMainMenu.Name = "findMainMenu";
this.findMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F)));
- this.findMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.findMainMenu.Size = new System.Drawing.Size(164, 22);
this.findMainMenu.Text = "Find";
this.findMainMenu.Click += new System.EventHandler(this.FindMainMenu_Click);
//
// mainMenuSeparator6
//
this.mainMenuSeparator6.Name = "mainMenuSeparator6";
- this.mainMenuSeparator6.Size = new System.Drawing.Size(162, 6);
+ this.mainMenuSeparator6.Size = new System.Drawing.Size(161, 6);
//
// selectAllMainMenu
//
this.selectAllMainMenu.Name = "selectAllMainMenu";
this.selectAllMainMenu.ShortcutKeyDisplayString = "";
this.selectAllMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
- this.selectAllMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.selectAllMainMenu.Size = new System.Drawing.Size(164, 22);
this.selectAllMainMenu.Text = "Select All";
this.selectAllMainMenu.Click += new System.EventHandler(this.SelectAllMainMenu_Click);
//
@@ -365,20 +365,20 @@ public void InitializeComponent()
this.wordWrapMainMenu.CheckOnClick = true;
this.wordWrapMainMenu.CheckState = System.Windows.Forms.CheckState.Checked;
this.wordWrapMainMenu.Name = "wordWrapMainMenu";
- this.wordWrapMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.wordWrapMainMenu.Size = new System.Drawing.Size(164, 22);
this.wordWrapMainMenu.Text = "Word Wrap";
this.wordWrapMainMenu.Click += new System.EventHandler(this.WordWrapMainMenu_Click);
//
// mainMenuSeparator7
//
this.mainMenuSeparator7.Name = "mainMenuSeparator7";
- this.mainMenuSeparator7.Size = new System.Drawing.Size(162, 6);
+ this.mainMenuSeparator7.Size = new System.Drawing.Size(161, 6);
//
// clearMainMenu
//
this.clearMainMenu.Name = "clearMainMenu";
this.clearMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Delete)));
- this.clearMainMenu.Size = new System.Drawing.Size(165, 22);
+ this.clearMainMenu.Size = new System.Drawing.Size(164, 22);
this.clearMainMenu.Text = "Clear";
this.clearMainMenu.Click += new System.EventHandler(this.ClearMainMenu_Click);
//
@@ -391,7 +391,7 @@ public void InitializeComponent()
this.settingsMainMenu});
this.toolsMainMenu.ForeColor = System.Drawing.SystemColors.ControlText;
this.toolsMainMenu.Name = "toolsMainMenu";
- this.toolsMainMenu.Size = new System.Drawing.Size(48, 24);
+ this.toolsMainMenu.Size = new System.Drawing.Size(46, 24);
this.toolsMainMenu.Text = "Tools";
this.toolsMainMenu.DropDownOpened += new System.EventHandler(this.ToolsMainMenu_DropDownOpened);
//
@@ -400,7 +400,7 @@ public void InitializeComponent()
this.alwaysOnTopMainMenu.CheckOnClick = true;
this.alwaysOnTopMainMenu.Name = "alwaysOnTopMainMenu";
this.alwaysOnTopMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T)));
- this.alwaysOnTopMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.alwaysOnTopMainMenu.Size = new System.Drawing.Size(201, 22);
this.alwaysOnTopMainMenu.Text = "Always on Top";
this.alwaysOnTopMainMenu.Click += new System.EventHandler(this.AlwaysOnTopMainMenu_Click);
//
@@ -409,7 +409,7 @@ public void InitializeComponent()
this.changeKeyMainMenu.Name = "changeKeyMainMenu";
this.changeKeyMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Alt)
| System.Windows.Forms.Keys.K)));
- this.changeKeyMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.changeKeyMainMenu.Size = new System.Drawing.Size(201, 22);
this.changeKeyMainMenu.Text = "Change Key";
this.changeKeyMainMenu.Click += new System.EventHandler(this.ChangeKeyMainMenu_Click);
//
@@ -417,7 +417,7 @@ public void InitializeComponent()
//
this.lockMainMenu.Name = "lockMainMenu";
this.lockMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.L)));
- this.lockMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.lockMainMenu.Size = new System.Drawing.Size(201, 22);
this.lockMainMenu.Text = "Lock";
this.lockMainMenu.Click += new System.EventHandler(this.LockMainMenu_Click);
//
@@ -426,7 +426,7 @@ public void InitializeComponent()
this.settingsMainMenu.Name = "settingsMainMenu";
this.settingsMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Alt)
| System.Windows.Forms.Keys.S)));
- this.settingsMainMenu.Size = new System.Drawing.Size(202, 22);
+ this.settingsMainMenu.Size = new System.Drawing.Size(201, 22);
this.settingsMainMenu.Text = "Settings";
this.settingsMainMenu.Click += new System.EventHandler(this.SettingsMainMenu_Click);
//
@@ -439,14 +439,14 @@ public void InitializeComponent()
this.aboutMainMenu});
this.helpMainMenu.ForeColor = System.Drawing.SystemColors.ControlText;
this.helpMainMenu.Name = "helpMainMenu";
- this.helpMainMenu.Size = new System.Drawing.Size(43, 24);
+ this.helpMainMenu.Size = new System.Drawing.Size(44, 24);
this.helpMainMenu.Text = "Help";
//
// docsMainMenu
//
this.docsMainMenu.Name = "docsMainMenu";
this.docsMainMenu.ShortcutKeys = System.Windows.Forms.Keys.F1;
- this.docsMainMenu.Size = new System.Drawing.Size(187, 22);
+ this.docsMainMenu.Size = new System.Drawing.Size(180, 22);
this.docsMainMenu.Text = "Documentation";
this.docsMainMenu.Click += new System.EventHandler(this.DocsMainMenu_Click);
//
@@ -454,7 +454,7 @@ public void InitializeComponent()
//
this.updatesMainMenu.Name = "updatesMainMenu";
this.updatesMainMenu.RightToLeftAutoMirrorImage = true;
- this.updatesMainMenu.Size = new System.Drawing.Size(187, 22);
+ this.updatesMainMenu.Size = new System.Drawing.Size(180, 22);
this.updatesMainMenu.Text = "Сheck for Updates...";
this.updatesMainMenu.Click += new System.EventHandler(this.UpdatesMainMenu_Click);
//
@@ -462,14 +462,14 @@ public void InitializeComponent()
//
this.mainMenuSeparator8.ForeColor = System.Drawing.SystemColors.ControlText;
this.mainMenuSeparator8.Name = "mainMenuSeparator8";
- this.mainMenuSeparator8.Size = new System.Drawing.Size(184, 6);
+ this.mainMenuSeparator8.Size = new System.Drawing.Size(177, 6);
//
// aboutMainMenu
//
this.aboutMainMenu.BackColor = System.Drawing.SystemColors.Control;
this.aboutMainMenu.Name = "aboutMainMenu";
this.aboutMainMenu.ShortcutKeyDisplayString = "";
- this.aboutMainMenu.Size = new System.Drawing.Size(187, 22);
+ this.aboutMainMenu.Size = new System.Drawing.Size(180, 22);
this.aboutMainMenu.Text = "About";
this.aboutMainMenu.Click += new System.EventHandler(this.AboutMainMenu_Click);
//
@@ -478,9 +478,9 @@ public void InitializeComponent()
this.debugMainMenu.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.debugMainMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.variablesMainMenu,
- this.insMainMenu});
+ this.insertMainMenu});
this.debugMainMenu.Name = "debugMainMenu";
- this.debugMainMenu.Size = new System.Drawing.Size(55, 24);
+ this.debugMainMenu.Size = new System.Drawing.Size(54, 24);
this.debugMainMenu.Text = "Debug";
this.debugMainMenu.Visible = false;
//
@@ -488,16 +488,16 @@ public void InitializeComponent()
//
this.variablesMainMenu.Name = "variablesMainMenu";
this.variablesMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Space)));
- this.variablesMainMenu.Size = new System.Drawing.Size(213, 22);
+ this.variablesMainMenu.Size = new System.Drawing.Size(215, 22);
this.variablesMainMenu.Text = "Main variables";
this.variablesMainMenu.Click += new System.EventHandler(this.VariablesMainMenu_Click);
//
- // insMainMenu
+ // insertMainMenu
//
- this.insMainMenu.Name = "insMainMenu";
- this.insMainMenu.Size = new System.Drawing.Size(213, 22);
- this.insMainMenu.Text = "Insert";
- this.insMainMenu.Visible = false;
+ this.insertMainMenu.Name = "insertMainMenu";
+ this.insertMainMenu.Size = new System.Drawing.Size(215, 22);
+ this.insertMainMenu.Text = "Insert";
+ this.insertMainMenu.Visible = false;
//
// contextMenu
//
@@ -615,16 +615,17 @@ public void InitializeComponent()
this.searchPanel.BackColor = System.Drawing.Color.White;
this.searchPanel.ColumnCount = 5;
this.searchPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.searchPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 104F));
this.searchPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
- this.searchPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 90F));
- this.searchPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 70F));
+ this.searchPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 72F));
this.searchPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 22F));
- this.searchPanel.Controls.Add(this.findNextButton, 3, 0);
+ this.searchPanel.Controls.Add(this.searchFindNextButton, 3, 0);
this.searchPanel.Controls.Add(this.searchTextBox, 0, 0);
- this.searchPanel.Controls.Add(this.wholeWordCheckBox, 2, 0);
- this.searchPanel.Controls.Add(this.caseSensitiveCheckBox, 1, 0);
- this.searchPanel.Controls.Add(this.closeSearchPanel, 4, 0);
+ this.searchPanel.Controls.Add(this.searchWholeWordCheckBox, 2, 0);
+ this.searchPanel.Controls.Add(this.searchCaseSensitiveCheckBox, 1, 0);
+ this.searchPanel.Controls.Add(this.searchCloseButton, 4, 0);
this.searchPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.searchPanel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.searchPanel.ForeColor = System.Drawing.Color.Black;
this.searchPanel.Location = new System.Drawing.Point(0, 211);
this.searchPanel.Name = "searchPanel";
@@ -634,26 +635,26 @@ public void InitializeComponent()
this.searchPanel.TabIndex = 17;
this.searchPanel.Visible = false;
//
- // findNextButton
+ // searchFindNextButton
//
- this.findNextButton.BackColor = System.Drawing.Color.Transparent;
- this.findNextButton.Cursor = System.Windows.Forms.Cursors.Hand;
- this.findNextButton.Dock = System.Windows.Forms.DockStyle.Fill;
- this.findNextButton.FlatAppearance.BorderColor = System.Drawing.Color.Black;
- this.findNextButton.FlatAppearance.BorderSize = 0;
- this.findNextButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.findNextButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.findNextButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.findNextButton.ForeColor = System.Drawing.Color.Black;
- this.findNextButton.Location = new System.Drawing.Point(395, 3);
- this.findNextButton.Name = "findNextButton";
- this.findNextButton.Size = new System.Drawing.Size(64, 22);
- this.findNextButton.TabIndex = 15;
- this.findNextButton.TabStop = false;
- this.findNextButton.Text = "Find Next";
- this.findNextButton.UseMnemonic = false;
- this.findNextButton.UseVisualStyleBackColor = false;
- this.findNextButton.Click += new System.EventHandler(this.FindNextButton_Click);
+ this.searchFindNextButton.BackColor = System.Drawing.Color.Transparent;
+ this.searchFindNextButton.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.searchFindNextButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.searchFindNextButton.FlatAppearance.BorderColor = System.Drawing.Color.Black;
+ this.searchFindNextButton.FlatAppearance.BorderSize = 0;
+ this.searchFindNextButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.searchFindNextButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.searchFindNextButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.searchFindNextButton.ForeColor = System.Drawing.Color.Black;
+ this.searchFindNextButton.Location = new System.Drawing.Point(393, 3);
+ this.searchFindNextButton.Name = "searchFindNextButton";
+ this.searchFindNextButton.Size = new System.Drawing.Size(66, 22);
+ this.searchFindNextButton.TabIndex = 15;
+ this.searchFindNextButton.TabStop = false;
+ this.searchFindNextButton.Text = "Find Next";
+ this.searchFindNextButton.UseMnemonic = false;
+ this.searchFindNextButton.UseVisualStyleBackColor = false;
+ this.searchFindNextButton.Click += new System.EventHandler(this.SearchFindNextButton_Click);
//
// searchTextBox
//
@@ -661,62 +662,60 @@ public void InitializeComponent()
this.searchTextBox.BackColor = System.Drawing.SystemColors.Control;
this.searchTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.searchTextBox.ForeColor = System.Drawing.Color.Black;
- this.searchTextBox.Location = new System.Drawing.Point(3, 7);
+ this.searchTextBox.Location = new System.Drawing.Point(3, 6);
this.searchTextBox.Name = "searchTextBox";
- this.searchTextBox.Size = new System.Drawing.Size(196, 13);
+ this.searchTextBox.Size = new System.Drawing.Size(180, 15);
this.searchTextBox.TabIndex = 9;
this.searchTextBox.TabStop = false;
this.searchTextBox.TextChanged += new System.EventHandler(this.SearchTextBox_TextChanged);
this.searchTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SearchTextBox_KeyDown);
//
- // wholeWordCheckBox
+ // searchWholeWordCheckBox
//
- this.wholeWordCheckBox.AutoSize = true;
- this.wholeWordCheckBox.BackColor = System.Drawing.Color.Transparent;
- this.wholeWordCheckBox.Dock = System.Windows.Forms.DockStyle.Fill;
- this.wholeWordCheckBox.ForeColor = System.Drawing.Color.Black;
- this.wholeWordCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl;
- this.wholeWordCheckBox.Location = new System.Drawing.Point(305, 3);
- this.wholeWordCheckBox.Name = "wholeWordCheckBox";
- this.wholeWordCheckBox.Size = new System.Drawing.Size(84, 22);
- this.wholeWordCheckBox.TabIndex = 12;
- this.wholeWordCheckBox.Text = "Whole word";
- this.wholeWordCheckBox.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
- this.wholeWordCheckBox.UseVisualStyleBackColor = false;
- this.wholeWordCheckBox.CheckedChanged += new System.EventHandler(this.WholeWordCheckBox_CheckedChanged);
+ this.searchWholeWordCheckBox.AutoSize = true;
+ this.searchWholeWordCheckBox.BackColor = System.Drawing.Color.Transparent;
+ this.searchWholeWordCheckBox.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.searchWholeWordCheckBox.ForeColor = System.Drawing.Color.Black;
+ this.searchWholeWordCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.searchWholeWordCheckBox.Location = new System.Drawing.Point(293, 3);
+ this.searchWholeWordCheckBox.Name = "searchWholeWordCheckBox";
+ this.searchWholeWordCheckBox.Size = new System.Drawing.Size(94, 22);
+ this.searchWholeWordCheckBox.TabIndex = 12;
+ this.searchWholeWordCheckBox.Text = "Whole word";
+ this.searchWholeWordCheckBox.UseVisualStyleBackColor = false;
+ this.searchWholeWordCheckBox.CheckedChanged += new System.EventHandler(this.SearchWholeWordCheckBox_CheckedChanged);
//
- // caseSensitiveCheckBox
+ // searchCaseSensitiveCheckBox
//
- this.caseSensitiveCheckBox.AutoSize = true;
- this.caseSensitiveCheckBox.BackColor = System.Drawing.Color.Transparent;
- this.caseSensitiveCheckBox.Dock = System.Windows.Forms.DockStyle.Fill;
- this.caseSensitiveCheckBox.ForeColor = System.Drawing.Color.Black;
- this.caseSensitiveCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl;
- this.caseSensitiveCheckBox.Location = new System.Drawing.Point(205, 3);
- this.caseSensitiveCheckBox.Name = "caseSensitiveCheckBox";
- this.caseSensitiveCheckBox.Size = new System.Drawing.Size(94, 22);
- this.caseSensitiveCheckBox.TabIndex = 11;
- this.caseSensitiveCheckBox.Text = "Case sensitive";
- this.caseSensitiveCheckBox.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
- this.caseSensitiveCheckBox.UseVisualStyleBackColor = false;
- this.caseSensitiveCheckBox.CheckedChanged += new System.EventHandler(this.CaseSensitiveCheckBox_CheckedChanged);
+ this.searchCaseSensitiveCheckBox.AutoSize = true;
+ this.searchCaseSensitiveCheckBox.BackColor = System.Drawing.Color.Transparent;
+ this.searchCaseSensitiveCheckBox.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.searchCaseSensitiveCheckBox.ForeColor = System.Drawing.Color.Black;
+ this.searchCaseSensitiveCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.searchCaseSensitiveCheckBox.Location = new System.Drawing.Point(189, 3);
+ this.searchCaseSensitiveCheckBox.Name = "searchCaseSensitiveCheckBox";
+ this.searchCaseSensitiveCheckBox.Size = new System.Drawing.Size(98, 22);
+ this.searchCaseSensitiveCheckBox.TabIndex = 11;
+ this.searchCaseSensitiveCheckBox.Text = "Case sensitive";
+ this.searchCaseSensitiveCheckBox.UseVisualStyleBackColor = false;
+ this.searchCaseSensitiveCheckBox.CheckedChanged += new System.EventHandler(this.SearchCaseSensitiveCheckBox_CheckedChanged);
//
- // closeSearchPanel
+ // searchCloseButton
//
- this.closeSearchPanel.BackColor = System.Drawing.Color.Transparent;
- this.closeSearchPanel.Cursor = System.Windows.Forms.Cursors.Hand;
- this.closeSearchPanel.Image = ((System.Drawing.Image)(resources.GetObject("closeSearchPanel.Image")));
- this.closeSearchPanel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
- this.closeSearchPanel.Location = new System.Drawing.Point(465, 3);
- this.closeSearchPanel.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
- this.closeSearchPanel.Name = "closeSearchPanel";
- this.closeSearchPanel.Size = new System.Drawing.Size(15, 20);
- this.closeSearchPanel.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
- this.closeSearchPanel.TabIndex = 14;
- this.closeSearchPanel.TabStop = false;
- this.closeSearchPanel.Click += new System.EventHandler(this.CloseSearchPanel_Click);
- this.closeSearchPanel.MouseLeave += new System.EventHandler(this.CloseSearchPanel_MouseLeave);
- this.closeSearchPanel.MouseHover += new System.EventHandler(this.CloseSearchPanel_MouseHover);
+ this.searchCloseButton.BackColor = System.Drawing.Color.Transparent;
+ this.searchCloseButton.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.searchCloseButton.Image = ((System.Drawing.Image)(resources.GetObject("searchCloseButton.Image")));
+ this.searchCloseButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.searchCloseButton.Location = new System.Drawing.Point(465, 3);
+ this.searchCloseButton.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
+ this.searchCloseButton.Name = "searchCloseButton";
+ this.searchCloseButton.Size = new System.Drawing.Size(15, 20);
+ this.searchCloseButton.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+ this.searchCloseButton.TabIndex = 14;
+ this.searchCloseButton.TabStop = false;
+ this.searchCloseButton.Click += new System.EventHandler(this.SearchCloseButton_Click);
+ this.searchCloseButton.MouseLeave += new System.EventHandler(this.SearchCloseButton_MouseLeave);
+ this.searchCloseButton.MouseHover += new System.EventHandler(this.SearchCloseButton_MouseHover);
//
// toolbarPanel
//
@@ -950,180 +949,181 @@ public void InitializeComponent()
this.statusPanel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.statusPanel.ForeColor = System.Drawing.Color.Black;
this.statusPanel.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.statusLabel,
- this.lengthStatusLabel,
- this.linesStatusLabel,
- this.lnStatusLabel,
- this.colStatusLabel});
+ this.statusPanelLabel,
+ this.statusPanelLengthLabel,
+ this.statusPaneLinesLabel,
+ this.statusPaneLnLabel,
+ this.statusPaneColLabel});
this.statusPanel.Location = new System.Drawing.Point(0, 239);
this.statusPanel.Name = "statusPanel";
this.statusPanel.Size = new System.Drawing.Size(484, 22);
this.statusPanel.TabIndex = 18;
//
- // statusLabel
+ // statusPanelLabel
//
- this.statusLabel.ActiveLinkColor = System.Drawing.Color.SteelBlue;
- this.statusLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
- this.statusLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
- this.statusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
- this.statusLabel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.statusLabel.ImageTransparentColor = System.Drawing.SystemColors.Control;
- this.statusLabel.LinkColor = System.Drawing.Color.SteelBlue;
- this.statusLabel.Name = "statusLabel";
- this.statusLabel.Size = new System.Drawing.Size(43, 17);
- this.statusLabel.Text = "Ready";
- this.statusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.statusLabel.VisitedLinkColor = System.Drawing.Color.SteelBlue;
- this.statusLabel.Click += new System.EventHandler(this.StatusLabel_Click);
- this.statusLabel.TextChanged += new System.EventHandler(this.StatusLabel_TextChanged);
+ this.statusPanelLabel.ActiveLinkColor = System.Drawing.Color.SteelBlue;
+ this.statusPanelLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
+ this.statusPanelLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
+ this.statusPanelLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
+ this.statusPanelLabel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.statusPanelLabel.ImageTransparentColor = System.Drawing.SystemColors.Control;
+ this.statusPanelLabel.LinkColor = System.Drawing.Color.SteelBlue;
+ this.statusPanelLabel.Name = "statusPanelLabel";
+ this.statusPanelLabel.Size = new System.Drawing.Size(43, 17);
+ this.statusPanelLabel.Text = "Ready";
+ this.statusPanelLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.statusPanelLabel.VisitedLinkColor = System.Drawing.Color.SteelBlue;
+ this.statusPanelLabel.Click += new System.EventHandler(this.StatusPanelLabel_Click);
+ this.statusPanelLabel.TextChanged += new System.EventHandler(this.StatusPanelLabel_TextChanged);
//
- // lengthStatusLabel
+ // statusPanelLengthLabel
//
- this.lengthStatusLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
- this.lengthStatusLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
- this.lengthStatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
- this.lengthStatusLabel.Name = "lengthStatusLabel";
- this.lengthStatusLabel.Size = new System.Drawing.Size(59, 17);
- this.lengthStatusLabel.Text = "Length: 0";
+ this.statusPanelLengthLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
+ this.statusPanelLengthLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
+ this.statusPanelLengthLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
+ this.statusPanelLengthLabel.Name = "statusPanelLengthLabel";
+ this.statusPanelLengthLabel.Size = new System.Drawing.Size(59, 17);
+ this.statusPanelLengthLabel.Text = "Length: 0";
//
- // linesStatusLabel
+ // statusPaneLinesLabel
//
- this.linesStatusLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
- this.linesStatusLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
- this.linesStatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
- this.linesStatusLabel.Name = "linesStatusLabel";
- this.linesStatusLabel.Size = new System.Drawing.Size(49, 17);
- this.linesStatusLabel.Text = "Lines: 1";
+ this.statusPaneLinesLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
+ this.statusPaneLinesLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
+ this.statusPaneLinesLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
+ this.statusPaneLinesLabel.Name = "statusPaneLinesLabel";
+ this.statusPaneLinesLabel.Size = new System.Drawing.Size(49, 17);
+ this.statusPaneLinesLabel.Text = "Lines: 1";
//
- // lnStatusLabel
+ // statusPaneLnLabel
//
- this.lnStatusLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
- this.lnStatusLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
- this.lnStatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
- this.lnStatusLabel.Name = "lnStatusLabel";
- this.lnStatusLabel.Size = new System.Drawing.Size(35, 17);
- this.lnStatusLabel.Text = "Ln: 1";
+ this.statusPaneLnLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
+ this.statusPaneLnLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
+ this.statusPaneLnLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
+ this.statusPaneLnLabel.Name = "statusPaneLnLabel";
+ this.statusPaneLnLabel.Size = new System.Drawing.Size(35, 17);
+ this.statusPaneLnLabel.Text = "Ln: 1";
//
- // colStatusLabel
+ // statusPaneColLabel
//
- this.colStatusLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
- this.colStatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
- this.colStatusLabel.Name = "colStatusLabel";
- this.colStatusLabel.Size = new System.Drawing.Size(36, 17);
- this.colStatusLabel.Text = "Col: 0";
+ this.statusPaneColLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
+ this.statusPaneColLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
+ this.statusPaneColLabel.Name = "statusPaneColLabel";
+ this.statusPaneColLabel.Size = new System.Drawing.Size(36, 17);
+ this.statusPaneColLabel.Text = "Col: 0";
//
// trayIcon
//
- this.trayIcon.ContextMenuStrip = this.mnuTray;
+ this.trayIcon.ContextMenuStrip = this.trayMenu;
this.trayIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("trayIcon.Icon")));
this.trayIcon.Text = "Crypto Notepad";
this.trayIcon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.TrayIcon_MouseDoubleClick);
//
- // mnuTray
+ // trayMenu
//
- this.mnuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.showToolStripMenuItem,
- this.exitToolStripMenuItem});
- this.mnuTray.Name = "mnuTray";
- this.mnuTray.Size = new System.Drawing.Size(181, 70);
+ this.trayMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.trayMenuShow,
+ this.trayMenuExit});
+ this.trayMenu.Name = "mnuTray";
+ this.trayMenu.Size = new System.Drawing.Size(104, 48);
//
- // showToolStripMenuItem
+ // trayMenuShow
//
- this.showToolStripMenuItem.Name = "showToolStripMenuItem";
- this.showToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
- this.showToolStripMenuItem.Text = "Show";
- this.showToolStripMenuItem.Click += new System.EventHandler(this.ShowToolStripMenuItem_Click);
+ this.trayMenuShow.Name = "trayMenuShow";
+ this.trayMenuShow.Size = new System.Drawing.Size(103, 22);
+ this.trayMenuShow.Text = "Show";
+ this.trayMenuShow.Click += new System.EventHandler(this.TrayMenuShow_Click);
//
- // exitToolStripMenuItem
+ // trayMenuExit
//
- this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
- this.exitToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
- this.exitToolStripMenuItem.Text = "Exit";
- this.exitToolStripMenuItem.Click += new System.EventHandler(this.ExitToolStripMenuItem_Click);
+ this.trayMenuExit.Name = "trayMenuExit";
+ this.trayMenuExit.Size = new System.Drawing.Size(103, 22);
+ this.trayMenuExit.Text = "Exit";
+ this.trayMenuExit.Click += new System.EventHandler(this.TrayMenuExit_Click);
//
- // pnlEnterKey
+ // fileLockedPanel
//
- this.pnlEnterKey.Anchor = System.Windows.Forms.AnchorStyles.None;
- this.pnlEnterKey.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(55)))), ((int)(((byte)(55)))));
- this.pnlEnterKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.pnlEnterKey.Controls.Add(this.btnCloseEnterKey);
- this.pnlEnterKey.Controls.Add(this.btnOk);
- this.pnlEnterKey.Controls.Add(this.txtKey);
- this.pnlEnterKey.Controls.Add(this.picShowKey);
- this.pnlEnterKey.Controls.Add(this.lblFileName);
- this.pnlEnterKey.ForeColor = System.Drawing.Color.Azure;
- this.pnlEnterKey.Location = new System.Drawing.Point(103, 84);
- this.pnlEnterKey.Name = "pnlEnterKey";
- this.pnlEnterKey.Size = new System.Drawing.Size(267, 95);
- this.pnlEnterKey.TabIndex = 20;
- this.pnlEnterKey.Visible = false;
- this.pnlEnterKey.VisibleChanged += new System.EventHandler(this.PnlEnterKey_VisibleChanged);
+ this.fileLockedPanel.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.fileLockedPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(55)))), ((int)(((byte)(55)))));
+ this.fileLockedPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.fileLockedPanel.Controls.Add(this.fileLockedCloseButton);
+ this.fileLockedPanel.Controls.Add(this.fileLockedOkButton);
+ this.fileLockedPanel.Controls.Add(this.fileLockedKeyTextBox);
+ this.fileLockedPanel.Controls.Add(this.fileLockedShowKey);
+ this.fileLockedPanel.Controls.Add(this.fileLockedLabel);
+ this.fileLockedPanel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.fileLockedPanel.ForeColor = System.Drawing.Color.Azure;
+ this.fileLockedPanel.Location = new System.Drawing.Point(103, 84);
+ this.fileLockedPanel.Name = "fileLockedPanel";
+ this.fileLockedPanel.Size = new System.Drawing.Size(261, 91);
+ this.fileLockedPanel.TabIndex = 20;
+ this.fileLockedPanel.Visible = false;
+ this.fileLockedPanel.VisibleChanged += new System.EventHandler(this.FileLockedPanel_VisibleChanged);
//
- // btnCloseEnterKey
+ // fileLockedCloseButton
//
- this.btnCloseEnterKey.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnCloseEnterKey.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(55)))), ((int)(((byte)(55)))));
- this.btnCloseEnterKey.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(55)))), ((int)(((byte)(55)))));
- this.btnCloseEnterKey.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(55)))), ((int)(((byte)(55)))));
- this.btnCloseEnterKey.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnCloseEnterKey.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.btnCloseEnterKey.ForeColor = System.Drawing.Color.DimGray;
- this.btnCloseEnterKey.Location = new System.Drawing.Point(243, 0);
- this.btnCloseEnterKey.Name = "btnCloseEnterKey";
- this.btnCloseEnterKey.Size = new System.Drawing.Size(23, 23);
- this.btnCloseEnterKey.TabIndex = 11;
- this.btnCloseEnterKey.Text = "X";
- this.btnCloseEnterKey.UseVisualStyleBackColor = true;
- this.btnCloseEnterKey.MouseClick += new System.Windows.Forms.MouseEventHandler(this.BtnCloseEnterKey_MouseClick);
- this.btnCloseEnterKey.MouseEnter += new System.EventHandler(this.BtnCloseEnterKey_MouseEnter);
- this.btnCloseEnterKey.MouseLeave += new System.EventHandler(this.BtnCloseEnterKey_MouseLeave);
+ this.fileLockedCloseButton.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.fileLockedCloseButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(55)))), ((int)(((byte)(55)))));
+ this.fileLockedCloseButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(55)))), ((int)(((byte)(55)))));
+ this.fileLockedCloseButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(55)))), ((int)(((byte)(55)))));
+ this.fileLockedCloseButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.fileLockedCloseButton.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.fileLockedCloseButton.ForeColor = System.Drawing.Color.DimGray;
+ this.fileLockedCloseButton.Location = new System.Drawing.Point(239, -2);
+ this.fileLockedCloseButton.Name = "fileLockedCloseButton";
+ this.fileLockedCloseButton.Size = new System.Drawing.Size(23, 23);
+ this.fileLockedCloseButton.TabIndex = 11;
+ this.fileLockedCloseButton.Text = "X";
+ this.fileLockedCloseButton.UseVisualStyleBackColor = true;
+ this.fileLockedCloseButton.MouseClick += new System.Windows.Forms.MouseEventHandler(this.FileLockedCloseButton_MouseClick);
+ this.fileLockedCloseButton.MouseEnter += new System.EventHandler(this.FileLockedCloseButton_MouseEnter);
+ this.fileLockedCloseButton.MouseLeave += new System.EventHandler(this.FileLockedCloseButton_MouseLeave);
//
- // btnOk
+ // fileLockedOkButton
//
- this.btnOk.Enabled = false;
- this.btnOk.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
- this.btnOk.Location = new System.Drawing.Point(6, 60);
- this.btnOk.Name = "btnOk";
- this.btnOk.Size = new System.Drawing.Size(75, 23);
- this.btnOk.TabIndex = 10;
- this.btnOk.Text = "OK";
- this.btnOk.UseVisualStyleBackColor = true;
- this.btnOk.Click += new System.EventHandler(this.BtnOk_Click);
+ this.fileLockedOkButton.Enabled = false;
+ this.fileLockedOkButton.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
+ this.fileLockedOkButton.Location = new System.Drawing.Point(6, 60);
+ this.fileLockedOkButton.Name = "fileLockedOkButton";
+ this.fileLockedOkButton.Size = new System.Drawing.Size(75, 23);
+ this.fileLockedOkButton.TabIndex = 10;
+ this.fileLockedOkButton.Text = "OK";
+ this.fileLockedOkButton.UseVisualStyleBackColor = true;
+ this.fileLockedOkButton.Click += new System.EventHandler(this.FileLockedOkButton_Click);
//
- // txtKey
+ // fileLockedKeyTextBox
//
- this.txtKey.Location = new System.Drawing.Point(6, 34);
- this.txtKey.Name = "txtKey";
- this.txtKey.Size = new System.Drawing.Size(231, 20);
- this.txtKey.TabIndex = 8;
- this.txtKey.UseSystemPasswordChar = true;
- this.txtKey.TextChanged += new System.EventHandler(this.TxtKey_TextChanged);
- this.txtKey.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TxtKey_KeyDown);
+ this.fileLockedKeyTextBox.Location = new System.Drawing.Point(6, 34);
+ this.fileLockedKeyTextBox.Name = "fileLockedKeyTextBox";
+ this.fileLockedKeyTextBox.Size = new System.Drawing.Size(231, 22);
+ this.fileLockedKeyTextBox.TabIndex = 8;
+ this.fileLockedKeyTextBox.UseSystemPasswordChar = true;
+ this.fileLockedKeyTextBox.TextChanged += new System.EventHandler(this.FileLockedKeyTextBox_TextChanged);
+ this.fileLockedKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FileLockedKeyTextBox_KeyDown);
//
- // picShowKey
+ // fileLockedShowKey
//
- this.picShowKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.picShowKey.Cursor = System.Windows.Forms.Cursors.Hand;
- this.picShowKey.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.picShowKey.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.picShowKey.Location = new System.Drawing.Point(243, 34);
- this.picShowKey.Name = "picShowKey";
- this.picShowKey.Size = new System.Drawing.Size(18, 20);
- this.picShowKey.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.picShowKey.TabIndex = 9;
- this.picShowKey.TabStop = false;
- this.picShowKey.Click += new System.EventHandler(this.PicShowKey_Click);
+ this.fileLockedShowKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.fileLockedShowKey.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.fileLockedShowKey.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
+ this.fileLockedShowKey.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half;
+ this.fileLockedShowKey.Location = new System.Drawing.Point(239, 34);
+ this.fileLockedShowKey.Name = "fileLockedShowKey";
+ this.fileLockedShowKey.Size = new System.Drawing.Size(18, 22);
+ this.fileLockedShowKey.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.fileLockedShowKey.TabIndex = 9;
+ this.fileLockedShowKey.TabStop = false;
+ this.fileLockedShowKey.Click += new System.EventHandler(this.FileLockedShowKey_Click);
//
- // lblFileName
+ // fileLockedLabel
//
- this.lblFileName.AutoEllipsis = true;
- this.lblFileName.AutoSize = true;
- this.lblFileName.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.lblFileName.Location = new System.Drawing.Point(2, 2);
- this.lblFileName.Name = "lblFileName";
- this.lblFileName.Size = new System.Drawing.Size(71, 17);
- this.lblFileName.TabIndex = 7;
- this.lblFileName.Text = "File locked";
+ this.fileLockedLabel.AutoEllipsis = true;
+ this.fileLockedLabel.AutoSize = true;
+ this.fileLockedLabel.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.fileLockedLabel.Location = new System.Drawing.Point(2, 2);
+ this.fileLockedLabel.Name = "fileLockedLabel";
+ this.fileLockedLabel.Size = new System.Drawing.Size(71, 17);
+ this.fileLockedLabel.TabIndex = 7;
+ this.fileLockedLabel.Text = "File locked";
//
// richTextBox
//
@@ -1146,46 +1146,46 @@ public void InitializeComponent()
this.richTextBox.TextChanged += new System.EventHandler(this.RichTextBox_TextChanged);
this.richTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.RichTextBox_KeyDown);
//
- // RTBLineNumbers
+ // lineNumbers
//
- this.RTBLineNumbers._SeeThroughMode_ = false;
- this.RTBLineNumbers.AutoSizing = true;
- this.RTBLineNumbers.BackColor = System.Drawing.SystemColors.Control;
- this.RTBLineNumbers.BackgroundGradient_AlphaColor = System.Drawing.Color.Transparent;
- this.RTBLineNumbers.BackgroundGradient_BetaColor = System.Drawing.Color.Transparent;
- this.RTBLineNumbers.BackgroundGradient_Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
- this.RTBLineNumbers.BorderLines_Color = System.Drawing.Color.Transparent;
- this.RTBLineNumbers.BorderLines_Style = System.Drawing.Drawing2D.DashStyle.Solid;
- this.RTBLineNumbers.BorderLines_Thickness = 1F;
- this.RTBLineNumbers.Dock = System.Windows.Forms.DockStyle.Left;
- this.RTBLineNumbers.DockSide = LineNumbers.LineNumbers.LineNumberDockSide.Left;
- this.RTBLineNumbers.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
- this.RTBLineNumbers.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(164)))), ((int)(((byte)(164)))));
- this.RTBLineNumbers.GridLines_Color = System.Drawing.Color.Transparent;
- this.RTBLineNumbers.GridLines_Style = System.Drawing.Drawing2D.DashStyle.Solid;
- this.RTBLineNumbers.GridLines_Thickness = 1F;
- this.RTBLineNumbers.LineNrs_Alignment = System.Drawing.ContentAlignment.TopCenter;
- this.RTBLineNumbers.LineNrs_AntiAlias = true;
- this.RTBLineNumbers.LineNrs_AsHexadecimal = false;
- this.RTBLineNumbers.LineNrs_ClippedByItemRectangle = true;
- this.RTBLineNumbers.LineNrs_LeadingZeroes = false;
- this.RTBLineNumbers.LineNrs_Offset = new System.Drawing.Size(0, 0);
- this.RTBLineNumbers.Location = new System.Drawing.Point(0, 48);
- this.RTBLineNumbers.Margin = new System.Windows.Forms.Padding(0);
- this.RTBLineNumbers.MarginLines_Color = System.Drawing.Color.DarkGray;
- this.RTBLineNumbers.MarginLines_Side = LineNumbers.LineNumbers.LineNumberDockSide.None;
- this.RTBLineNumbers.MarginLines_Style = System.Drawing.Drawing2D.DashStyle.Solid;
- this.RTBLineNumbers.MarginLines_Thickness = 1F;
- this.RTBLineNumbers.Name = "RTBLineNumbers";
- this.RTBLineNumbers.Padding = new System.Windows.Forms.Padding(0, 0, 2, 0);
- this.RTBLineNumbers.ParentRichTextBox = this.richTextBox;
- this.RTBLineNumbers.Show_BackgroundGradient = false;
- this.RTBLineNumbers.Show_BorderLines = false;
- this.RTBLineNumbers.Show_GridLines = false;
- this.RTBLineNumbers.Show_LineNrs = true;
- this.RTBLineNumbers.Show_MarginLines = false;
- this.RTBLineNumbers.Size = new System.Drawing.Size(22, 163);
- this.RTBLineNumbers.TabIndex = 19;
+ this.lineNumbers._SeeThroughMode_ = false;
+ this.lineNumbers.AutoSizing = true;
+ this.lineNumbers.BackColor = System.Drawing.SystemColors.Control;
+ this.lineNumbers.BackgroundGradient_AlphaColor = System.Drawing.Color.Transparent;
+ this.lineNumbers.BackgroundGradient_BetaColor = System.Drawing.Color.Transparent;
+ this.lineNumbers.BackgroundGradient_Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
+ this.lineNumbers.BorderLines_Color = System.Drawing.Color.Transparent;
+ this.lineNumbers.BorderLines_Style = System.Drawing.Drawing2D.DashStyle.Solid;
+ this.lineNumbers.BorderLines_Thickness = 1F;
+ this.lineNumbers.Dock = System.Windows.Forms.DockStyle.Left;
+ this.lineNumbers.DockSide = LineNumbers.LineNumbers.LineNumberDockSide.Left;
+ this.lineNumbers.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
+ this.lineNumbers.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(164)))), ((int)(((byte)(164)))));
+ this.lineNumbers.GridLines_Color = System.Drawing.Color.Transparent;
+ this.lineNumbers.GridLines_Style = System.Drawing.Drawing2D.DashStyle.Solid;
+ this.lineNumbers.GridLines_Thickness = 1F;
+ this.lineNumbers.LineNrs_Alignment = System.Drawing.ContentAlignment.TopCenter;
+ this.lineNumbers.LineNrs_AntiAlias = true;
+ this.lineNumbers.LineNrs_AsHexadecimal = false;
+ this.lineNumbers.LineNrs_ClippedByItemRectangle = true;
+ this.lineNumbers.LineNrs_LeadingZeroes = false;
+ this.lineNumbers.LineNrs_Offset = new System.Drawing.Size(0, 0);
+ this.lineNumbers.Location = new System.Drawing.Point(0, 48);
+ this.lineNumbers.Margin = new System.Windows.Forms.Padding(0);
+ this.lineNumbers.MarginLines_Color = System.Drawing.Color.DarkGray;
+ this.lineNumbers.MarginLines_Side = LineNumbers.LineNumbers.LineNumberDockSide.None;
+ this.lineNumbers.MarginLines_Style = System.Drawing.Drawing2D.DashStyle.Solid;
+ this.lineNumbers.MarginLines_Thickness = 1F;
+ this.lineNumbers.Name = "lineNumbers";
+ this.lineNumbers.Padding = new System.Windows.Forms.Padding(0, 0, 2, 0);
+ this.lineNumbers.ParentRichTextBox = this.richTextBox;
+ this.lineNumbers.Show_BackgroundGradient = false;
+ this.lineNumbers.Show_BorderLines = false;
+ this.lineNumbers.Show_GridLines = false;
+ this.lineNumbers.Show_LineNrs = true;
+ this.lineNumbers.Show_MarginLines = false;
+ this.lineNumbers.Size = new System.Drawing.Size(22, 163);
+ this.lineNumbers.TabIndex = 19;
//
// MainForm
//
@@ -1193,9 +1193,9 @@ public void InitializeComponent()
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(484, 261);
- this.Controls.Add(this.pnlEnterKey);
+ this.Controls.Add(this.fileLockedPanel);
this.Controls.Add(this.richTextBox);
- this.Controls.Add(this.RTBLineNumbers);
+ this.Controls.Add(this.lineNumbers);
this.Controls.Add(this.searchPanel);
this.Controls.Add(this.toolbarPanel);
this.Controls.Add(this.mainMenu);
@@ -1218,7 +1218,7 @@ public void InitializeComponent()
this.contextMenu.ResumeLayout(false);
this.searchPanel.ResumeLayout(false);
this.searchPanel.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.closeSearchPanel)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.searchCloseButton)).EndInit();
this.toolbarPanel.ResumeLayout(false);
this.toolbarPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.lockToolbarButton)).EndInit();
@@ -1236,10 +1236,10 @@ public void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.alwaysOnTopToolbarButton)).EndInit();
this.statusPanel.ResumeLayout(false);
this.statusPanel.PerformLayout();
- this.mnuTray.ResumeLayout(false);
- this.pnlEnterKey.ResumeLayout(false);
- this.pnlEnterKey.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.picShowKey)).EndInit();
+ this.trayMenu.ResumeLayout(false);
+ this.fileLockedPanel.ResumeLayout(false);
+ this.fileLockedPanel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fileLockedShowKey)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -1309,35 +1309,35 @@ public void InitializeComponent()
private System.Windows.Forms.ToolStripMenuItem redoContextMenu;
private System.Windows.Forms.ToolStripMenuItem debugMainMenu;
private System.Windows.Forms.ToolStripMenuItem variablesMainMenu;
- private System.Windows.Forms.ToolStripStatusLabel lengthStatusLabel;
- private System.Windows.Forms.ToolStripStatusLabel linesStatusLabel;
- private System.Windows.Forms.ToolStripStatusLabel lnStatusLabel;
- private System.Windows.Forms.ToolStripStatusLabel colStatusLabel;
+ private System.Windows.Forms.ToolStripStatusLabel statusPanelLengthLabel;
+ private System.Windows.Forms.ToolStripStatusLabel statusPaneLinesLabel;
+ private System.Windows.Forms.ToolStripStatusLabel statusPaneLnLabel;
+ private System.Windows.Forms.ToolStripStatusLabel statusPaneColLabel;
public System.Windows.Forms.TableLayoutPanel toolbarPanel;
public ExRichTextBox richTextBox;
- public System.Windows.Forms.ToolStripMenuItem insMainMenu;
- public LineNumbers.LineNumbers RTBLineNumbers;
+ public System.Windows.Forms.ToolStripMenuItem insertMainMenu;
+ public LineNumbers.LineNumbers lineNumbers;
protected internal System.Windows.Forms.StatusStrip statusPanel;
- protected internal System.Windows.Forms.ToolStripStatusLabel statusLabel;
+ protected internal System.Windows.Forms.ToolStripStatusLabel statusPanelLabel;
protected internal System.Windows.Forms.TextBox searchTextBox;
- protected internal System.Windows.Forms.CheckBox caseSensitiveCheckBox;
- protected internal System.Windows.Forms.CheckBox wholeWordCheckBox;
- protected internal System.Windows.Forms.Button findNextButton;
+ protected internal System.Windows.Forms.CheckBox searchCaseSensitiveCheckBox;
+ protected internal System.Windows.Forms.CheckBox searchWholeWordCheckBox;
+ protected internal System.Windows.Forms.Button searchFindNextButton;
public System.Windows.Forms.TableLayoutPanel searchPanel;
public System.Windows.Forms.MenuStrip mainMenu;
- private System.Windows.Forms.PictureBox closeSearchPanel;
+ private System.Windows.Forms.PictureBox searchCloseButton;
protected internal System.Windows.Forms.NotifyIcon trayIcon;
- private System.Windows.Forms.Panel pnlEnterKey;
- private System.Windows.Forms.Label lblFileName;
- public System.Windows.Forms.TextBox txtKey;
- private System.Windows.Forms.PictureBox picShowKey;
- private System.Windows.Forms.Button btnOk;
- private System.Windows.Forms.Button btnCloseEnterKey;
+ private System.Windows.Forms.Panel fileLockedPanel;
+ private System.Windows.Forms.Label fileLockedLabel;
+ public System.Windows.Forms.TextBox fileLockedKeyTextBox;
+ private System.Windows.Forms.PictureBox fileLockedShowKey;
+ private System.Windows.Forms.Button fileLockedOkButton;
+ private System.Windows.Forms.Button fileLockedCloseButton;
private System.Windows.Forms.ToolStripMenuItem alwaysOnTopMainMenu;
private System.Windows.Forms.PictureBox alwaysOnTopToolbarButton;
private System.Windows.Forms.ToolTip toolTip;
- private System.Windows.Forms.ContextMenuStrip mnuTray;
- private System.Windows.Forms.ToolStripMenuItem showToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
+ private System.Windows.Forms.ContextMenuStrip trayMenu;
+ private System.Windows.Forms.ToolStripMenuItem trayMenuShow;
+ private System.Windows.Forms.ToolStripMenuItem trayMenuExit;
}
}
diff --git a/Crypto Notepad/MainForm.cs b/Crypto Notepad/MainForm.cs
index 7ffd942..2e9d680 100644
--- a/Crypto Notepad/MainForm.cs
+++ b/Crypto Notepad/MainForm.cs
@@ -1,4 +1,4 @@
-using Crypto_Notepad.Properties;
+using Crypto_Notepad.Properties;
using System;
using System.ComponentModel;
using System.Diagnostics;
@@ -422,40 +422,40 @@ private async void StatusPanelMessage(string type)
switch (type)
{
case "save":
- if (statusLabel.Text != "File Saved")
+ if (statusPanelLabel.Text != "File Saved")
{
- statusLabel.Text = "File Saved";
+ statusPanelLabel.Text = "File Saved";
await Task.Delay(3000);
- statusLabel.Text = ready;
+ statusPanelLabel.Text = ready;
}
break;
case "update-missing":
- statusLabel.Text = "Crypto Notepad is up to date";
+ statusPanelLabel.Text = "Crypto Notepad is up to date";
await Task.Delay(3000);
- statusLabel.Text = ready;
+ statusPanelLabel.Text = ready;
break;
case "update-failed":
- statusLabel.Text = "Checking for updates failed";
+ statusPanelLabel.Text = "Checking for updates failed";
await Task.Delay(3000);
- statusLabel.Text = ready;
+ statusPanelLabel.Text = ready;
break;
case "update-needed":
- statusLabel.Text = "New version is available";
+ statusPanelLabel.Text = "New version is available";
break;
case "always-top-on":
- if (statusLabel.Text != "Always on top ON")
+ if (statusPanelLabel.Text != "Always on top ON")
{
- statusLabel.Text = "Always on top ON";
+ statusPanelLabel.Text = "Always on top ON";
await Task.Delay(3000);
- statusLabel.Text = ready;
+ statusPanelLabel.Text = ready;
}
break;
case "always-top-off":
- if (statusLabel.Text != "Always on top OFF")
+ if (statusPanelLabel.Text != "Always on top OFF")
{
- statusLabel.Text = "Always on top OFF";
+ statusPanelLabel.Text = "Always on top OFF";
await Task.Delay(3000);
- statusLabel.Text = ready;
+ statusPanelLabel.Text = ready;
}
break;
}
@@ -475,10 +475,10 @@ private void StatusPanelTextInfo()
linesCount = 1;
}
- lengthStatusLabel.Text = "Length: " + richTextBox.TextLength;
- linesStatusLabel.Text = "Lines: " + linesCount;
- lnStatusLabel.Text = "Ln: " + currentLine;
- colStatusLabel.Text = "Col: " + currentColumn;
+ statusPanelLengthLabel.Text = "Length: " + richTextBox.TextLength;
+ statusPaneLinesLabel.Text = "Lines: " + linesCount;
+ statusPaneLnLabel.Text = "Ln: " + currentLine;
+ statusPaneColLabel.Text = "Col: " + currentColumn;
}
private void LockFile()
@@ -505,12 +505,12 @@ private void LockFile()
DialogResult dialogResult = MessageBox.Show("Invalid key!", PublicVar.appName, MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
if (dialogResult == DialogResult.Retry)
{
- txtKey.Text = "";
- txtKey.Focus();
+ fileLockedKeyTextBox.Text = "";
+ fileLockedKeyTextBox.Focus();
}
if (dialogResult == DialogResult.Cancel)
{
- pnlEnterKey.Visible = false;
+ fileLockedPanel.Visible = false;
Text = PublicVar.appName;
filePath = "";
PublicVar.openFileName = null;
@@ -531,17 +531,17 @@ private void LoadSettings()
else
{
richTextBox.RightToLeft = RightToLeft.No;
- RTBLineNumbers.Dock = DockStyle.Left;
+ lineNumbers.Dock = DockStyle.Left;
rightToLeftContextMenu.Checked = false;
}
- if (settings.insKey == "Disable")
+ if (settings.insertKey == "Disable")
{
- insMainMenu.ShortcutKeys = Keys.Insert;
+ insertMainMenu.ShortcutKeys = Keys.Insert;
}
else
{
- insMainMenu.ShortcutKeys = Keys.None;
+ insertMainMenu.ShortcutKeys = Keys.None;
}
if (settings.autoCheckUpdate)
@@ -581,9 +581,9 @@ private void LoadSettings()
mainMenu.Visible = settings.mainMenuVisible;
rightToLeftContextMenu.Checked = settings.editorRightToLeft;
- RTBLineNumbers.BackColor = settings.lnBackColor;
- RTBLineNumbers.Font = settings.editorFont;
- RTBLineNumbers.ForeColor = settings.lnForeColor;
+ lineNumbers.BackColor = settings.lineNumbersBackColor;
+ lineNumbers.Font = settings.editorFont;
+ lineNumbers.ForeColor = settings.lineNumbersForeColor;
statusPanel.ForeColor = settings.statusPanelFontColor;
statusPanel.BackColor = settings.statusPanelBackColor;
@@ -599,21 +599,21 @@ private void LoadSettings()
searchPanel.ForeColor = settings.searchPanelForeColor;
searchTextBox.BackColor = settings.searchPanelBackColor;
searchTextBox.ForeColor = settings.searchPanelForeColor;
- caseSensitiveCheckBox.ForeColor = settings.searchPanelForeColor;
- wholeWordCheckBox.ForeColor = settings.searchPanelForeColor;
- findNextButton.ForeColor = settings.searchPanelForeColor;
+ searchCaseSensitiveCheckBox.ForeColor = settings.searchPanelForeColor;
+ searchWholeWordCheckBox.ForeColor = settings.searchPanelForeColor;
+ searchFindNextButton.ForeColor = settings.searchPanelForeColor;
- RTBLineNumbers.Visible = bool.Parse(settings.lnVisible);
- RTBLineNumbers.Show_BorderLines = bool.Parse(settings.blShow);
- RTBLineNumbers.Show_GridLines = bool.Parse(settings.glShow);
- RTBLineNumbers.Show_MarginLines = bool.Parse(settings.mlVisible);
- RTBLineNumbers.GridLines_Color = settings.glColor;
- RTBLineNumbers.MarginLines_Color = settings.mlColor;
- RTBLineNumbers.BorderLines_Color = settings.blColor;
- RTBLineNumbers.BorderLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.blStyle);
- RTBLineNumbers.GridLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.glStyle);
- RTBLineNumbers.MarginLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.mlStyle);
- RTBLineNumbers.MarginLines_Side = (LineNumbers.LineNumbers.LineNumberDockSide)Enum.Parse(typeof(LineNumbers.LineNumbers.LineNumberDockSide), settings.mlSide);
+ lineNumbers.Visible = bool.Parse(settings.lineNumbersVisible);
+ lineNumbers.Show_BorderLines = bool.Parse(settings.borderLinesVisible);
+ lineNumbers.Show_GridLines = bool.Parse(settings.gridLinesVisible);
+ lineNumbers.Show_MarginLines = bool.Parse(settings.marginLinesVisible);
+ lineNumbers.GridLines_Color = settings.gridLinesColor;
+ lineNumbers.MarginLines_Color = settings.marginLinesColor;
+ lineNumbers.BorderLines_Color = settings.borderLinesColor;
+ lineNumbers.BorderLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.borderLinesStyle);
+ lineNumbers.GridLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.gridLinesStyle);
+ lineNumbers.MarginLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.marginLinesStyle);
+ lineNumbers.MarginLines_Side = (LineNumbers.LineNumbers.LineNumberDockSide)Enum.Parse(typeof(LineNumbers.LineNumbers.LineNumberDockSide), settings.marginLinesSide);
}
public void MenuIcons(bool menuIcons)
@@ -708,14 +708,14 @@ private void MainForm_Resize(object sender, EventArgs e)
if (WindowState == FormWindowState.Minimized & settings.autoLock & PublicVar.encryptionKey.Get() != null)
{
- pnlEnterKey.Visible = true;
+ fileLockedPanel.Visible = true;
}
if (WindowState == FormWindowState.Normal)
{
- if (pnlEnterKey.Visible)
+ if (fileLockedPanel.Visible)
{
- txtKey.Focus();
+ fileLockedKeyTextBox.Focus();
}
}
}
@@ -728,7 +728,7 @@ private void MainWindow_Activated(object sender, EventArgs e)
{
richTextBox.Modified = true;
}
- RTBLineNumbers.Refresh();
+ lineNumbers.Refresh();
}
private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
@@ -837,7 +837,7 @@ private void RichTextBox_KeyDown(object sender, KeyEventArgs e)
if (e.KeyCode == Keys.Enter & searchPanel.Visible & searchTextBox.Text != "")
{
- FindNextButton_Click(this, new EventArgs());
+ SearchFindNextButton_Click(this, new EventArgs());
e.Handled = e.SuppressKeyPress = true;
}
}
@@ -1283,7 +1283,7 @@ private void ChangeKeyMainMenu_Click(object sender, EventArgs e)
private void LockMainMenu_Click(object sender, EventArgs e)
{
SaveMainMenu_Click(this, new EventArgs());
- pnlEnterKey.Visible = true;
+ fileLockedPanel.Visible = true;
}
private void SettingsMainMenu_Click(object sender, EventArgs e)
@@ -1389,14 +1389,14 @@ private void RightToLeftContextMenu_Click(object sender, EventArgs e)
richTextBox.Text = rtbTxt;
}
settings.editorRightToLeft = true;
- RTBLineNumbers.Dock = DockStyle.Right;
+ lineNumbers.Dock = DockStyle.Right;
richTextBox.Modified = false;
}
else
{
richTextBox.RightToLeft = RightToLeft.No;
settings.editorRightToLeft = false;
- RTBLineNumbers.Dock = DockStyle.Left;
+ lineNumbers.Dock = DockStyle.Left;
richTextBox.Modified = false;
}
settings.Save();
@@ -1550,33 +1550,33 @@ private void SearchTextBox_KeyDown(object sender, KeyEventArgs e)
if (e.KeyCode == Keys.Enter & searchPanel.Visible & searchTextBox.Text != "")
{
- FindNextButton_Click(this, new EventArgs());
+ SearchFindNextButton_Click(this, new EventArgs());
e.Handled = e.SuppressKeyPress = true;
}
}
- private void CloseSearchPanel_Click(object sender, EventArgs e)
+ private void SearchCloseButton_Click(object sender, EventArgs e)
{
FindMainMenu_Click(this, new EventArgs());
}
- private void CloseSearchPanel_MouseHover(object sender, EventArgs e)
+ private void SearchCloseButton_MouseHover(object sender, EventArgs e)
{
- closeSearchPanel.Image = Resources.close_b;
+ searchCloseButton.Image = Resources.close_b;
}
- private void CloseSearchPanel_MouseLeave(object sender, EventArgs e)
+ private void SearchCloseButton_MouseLeave(object sender, EventArgs e)
{
- closeSearchPanel.Image = Resources.close_g;
+ searchCloseButton.Image = Resources.close_g;
}
- private void CaseSensitiveCheckBox_CheckedChanged(object sender, EventArgs e)
+ private void SearchCaseSensitiveCheckBox_CheckedChanged(object sender, EventArgs e)
{
findPos = 0;
richTextBox.DeselectAll();
}
- private void WholeWordCheckBox_CheckedChanged(object sender, EventArgs e)
+ private void SearchWholeWordCheckBox_CheckedChanged(object sender, EventArgs e)
{
findPos = 0;
richTextBox.DeselectAll();
@@ -1606,27 +1606,27 @@ private void FindText(string text, RichTextBoxFinds findOptions)
}
}
- private void FindNextButton_Click(object sender, EventArgs e)
+ private void SearchFindNextButton_Click(object sender, EventArgs e)
{
- if ((!wholeWordCheckBox.Checked) & (!caseSensitiveCheckBox.Checked))
+ if ((!searchWholeWordCheckBox.Checked) & (!searchCaseSensitiveCheckBox.Checked))
{
FindText(searchTextBox.Text, RichTextBoxFinds.None);
return;
}
- if (wholeWordCheckBox.Checked & caseSensitiveCheckBox.Checked)
+ if (searchWholeWordCheckBox.Checked & searchCaseSensitiveCheckBox.Checked)
{
FindText(searchTextBox.Text, RichTextBoxFinds.MatchCase | RichTextBoxFinds.WholeWord);
return;
}
- if (caseSensitiveCheckBox.Checked)
+ if (searchCaseSensitiveCheckBox.Checked)
{
FindText(searchTextBox.Text, RichTextBoxFinds.MatchCase);
return;
}
- if (wholeWordCheckBox.Checked)
+ if (searchWholeWordCheckBox.Checked)
{
FindText(searchTextBox.Text, RichTextBoxFinds.WholeWord);
return;
@@ -1636,17 +1636,17 @@ private void FindNextButton_Click(object sender, EventArgs e)
#region AutoLock
- private void TxtKey_TextChanged(object sender, EventArgs e)
+ private void FileLockedKeyTextBox_TextChanged(object sender, EventArgs e)
{
- if (txtKey.Text.Length > 0)
- btnOk.Enabled = true;
+ if (fileLockedKeyTextBox.Text.Length > 0)
+ fileLockedOkButton.Enabled = true;
else
- btnOk.Enabled = false;
+ fileLockedOkButton.Enabled = false;
}
- private void PnlEnterKey_VisibleChanged(object sender, EventArgs e)
+ private void FileLockedPanel_VisibleChanged(object sender, EventArgs e)
{
- if (pnlEnterKey.Visible)
+ if (fileLockedPanel.Visible)
{
PublicVar.encryptionKey.Set(null);
caretPos = richTextBox.SelectionStart;
@@ -1654,7 +1654,7 @@ private void PnlEnterKey_VisibleChanged(object sender, EventArgs e)
toolbarPanel.Enabled = false;
mainMenu.Enabled = false;
richTextBox.Clear();
- txtKey.Focus();
+ fileLockedKeyTextBox.Focus();
}
else
{
@@ -1667,49 +1667,49 @@ private void PnlEnterKey_VisibleChanged(object sender, EventArgs e)
}
- private void BtnOk_Click(object sender, EventArgs e)
+ private void FileLockedOkButton_Click(object sender, EventArgs e)
{
LockFile();
}
- private void BtnCloseEnterKey_MouseClick(object sender, MouseEventArgs e)
+ private void FileLockedCloseButton_MouseClick(object sender, MouseEventArgs e)
{
- pnlEnterKey.Visible = false;
+ fileLockedPanel.Visible = false;
Text = PublicVar.appName;
filePath = null;
- PublicVar.openFileName = null;
+ PublicVar.openFileName = null;
}
- private void PicShowKey_Click(object sender, EventArgs e)
+ private void FileLockedShowKey_Click(object sender, EventArgs e)
{
- if (txtKey.UseSystemPasswordChar)
+ if (fileLockedKeyTextBox.UseSystemPasswordChar)
{
- txtKey.UseSystemPasswordChar = false;
- picShowKey.Image = Resources.eye;
+ fileLockedKeyTextBox.UseSystemPasswordChar = false;
+ fileLockedShowKey.Image = Resources.eye;
}
else
{
- txtKey.UseSystemPasswordChar = true;
- picShowKey.Image = Resources.eye_half;
- }
+ fileLockedKeyTextBox.UseSystemPasswordChar = true;
+ fileLockedShowKey.Image = Resources.eye_half;
+ }
}
- private void TxtKey_KeyDown(object sender, KeyEventArgs e)
+ private void FileLockedKeyTextBox_KeyDown(object sender, KeyEventArgs e)
{
- if (e.KeyCode == Keys.Enter & btnOk.Enabled)
+ if (e.KeyCode == Keys.Enter & fileLockedOkButton.Enabled)
{
- BtnOk_Click(sender, e);
+ FileLockedOkButton_Click(sender, e);
}
}
- private void BtnCloseEnterKey_MouseEnter(object sender, EventArgs e)
+ private void FileLockedCloseButton_MouseEnter(object sender, EventArgs e)
{
- btnCloseEnterKey.ForeColor = Color.Silver;
+ fileLockedCloseButton.ForeColor = Color.Silver;
}
- private void BtnCloseEnterKey_MouseLeave(object sender, EventArgs e)
+ private void FileLockedCloseButton_MouseLeave(object sender, EventArgs e)
{
- btnCloseEnterKey.ForeColor = Color.DimGray;
+ fileLockedCloseButton.ForeColor = Color.DimGray;
}
#endregion
@@ -1717,22 +1717,20 @@ private void BtnCloseEnterKey_MouseLeave(object sender, EventArgs e)
#region Tray
private void TrayIcon_MouseDoubleClick(object sender, MouseEventArgs e)
{
- Show();
- WindowState = FormWindowState.Normal;
- }
- private void ShowToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Show();
- WindowState = FormWindowState.Normal;
- }
- private void ExitToolStripMenuItem_Click(object sender, EventArgs e)
- {
- SaveConfirm(true);
- if (settings.closeToTray)
- {
- Environment.Exit(0);
+ if (e.Button == MouseButtons.Left) {
+ Show();
+ WindowState = FormWindowState.Normal;
}
}
+ private void TrayMenuShow_Click(object sender, EventArgs e)
+ {
+ Show();
+ WindowState = FormWindowState.Normal;
+ }
+ private void TrayMenuExit_Click(object sender, EventArgs e)
+ {
+ Application.Exit();
+ }
#endregion
@@ -1746,13 +1744,16 @@ private void VariablesMainMenu_Click(object sender, EventArgs e)
Debug.WriteLine("filePath: " + filePath);
Debug.WriteLine("encryptionKey: " + PublicVar.encryptionKey.Get());
Debug.WriteLine("TypedPassword: " + TypedPassword.Value);
- Debug.WriteLine("preventExit: " + preventExit);
Debug.WriteLine("keyChanged: " + PublicVar.keyChanged);
Debug.WriteLine("okPressed: " + PublicVar.okPressed);
Debug.WriteLine("RichTextBox.Modified: " + richTextBox.Modified);
Debug.WriteLine("EditorMenuStrip: " + contextMenu.Enabled);
#endif
}
+
+
+
+
#endregion
diff --git a/Crypto Notepad/MainForm.resx b/Crypto Notepad/MainForm.resx
index 059d421..9ae9e58 100644
--- a/Crypto Notepad/MainForm.resx
+++ b/Crypto Notepad/MainForm.resx
@@ -130,7 +130,7 @@
260, 17
-
+
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAABidJREFUaEPt
mE1oVFcUx6WIiBQJIRQRCaVI6CILKV0UKdJF6EKkC+miiJSCjUKIRUyC4EIwYpoQQ0g0UfNhNIlfWSTi
@@ -163,7 +163,7 @@
- 725, 17
+ 331, 56
@@ -322,13 +322,13 @@
- 517, 17
+ 123, 56
- 630, 17
+ 236, 56
-
- 815, 17
+
+ 17, 56
@@ -6503,7 +6503,7 @@
- 725, 17
+ 331, 56
55
diff --git a/Crypto Notepad/Properties/Settings.Designer.cs b/Crypto Notepad/Properties/Settings.Designer.cs
index 19a66c9..7073055 100644
--- a/Crypto Notepad/Properties/Settings.Designer.cs
+++ b/Crypto Notepad/Properties/Settings.Designer.cs
@@ -248,12 +248,12 @@ public bool menuIcons {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
- public string lnVisible {
+ public string lineNumbersVisible {
get {
- return ((string)(this["lnVisible"]));
+ return ((string)(this["lineNumbersVisible"]));
}
set {
- this["lnVisible"] = value;
+ this["lineNumbersVisible"] = value;
}
}
@@ -261,12 +261,12 @@ public string lnVisible {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("240, 240, 240")]
- public global::System.Drawing.Color lnBackColor {
+ public global::System.Drawing.Color lineNumbersBackColor {
get {
- return ((global::System.Drawing.Color)(this["lnBackColor"]));
+ return ((global::System.Drawing.Color)(this["lineNumbersBackColor"]));
}
set {
- this["lnBackColor"] = value;
+ this["lineNumbersBackColor"] = value;
}
}
@@ -274,12 +274,12 @@ public string lnVisible {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("164, 164, 164")]
- public global::System.Drawing.Color lnForeColor {
+ public global::System.Drawing.Color lineNumbersForeColor {
get {
- return ((global::System.Drawing.Color)(this["lnForeColor"]));
+ return ((global::System.Drawing.Color)(this["lineNumbersForeColor"]));
}
set {
- this["lnForeColor"] = value;
+ this["lineNumbersForeColor"] = value;
}
}
@@ -287,12 +287,12 @@ public string lnVisible {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
- public string blShow {
+ public string borderLinesVisible {
get {
- return ((string)(this["blShow"]));
+ return ((string)(this["borderLinesVisible"]));
}
set {
- this["blShow"] = value;
+ this["borderLinesVisible"] = value;
}
}
@@ -300,12 +300,12 @@ public string blShow {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("164, 164, 164")]
- public global::System.Drawing.Color blColor {
+ public global::System.Drawing.Color borderLinesColor {
get {
- return ((global::System.Drawing.Color)(this["blColor"]));
+ return ((global::System.Drawing.Color)(this["borderLinesColor"]));
}
set {
- this["blColor"] = value;
+ this["borderLinesColor"] = value;
}
}
@@ -313,12 +313,12 @@ public string blShow {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Solid")]
- public string blStyle {
+ public string borderLinesStyle {
get {
- return ((string)(this["blStyle"]));
+ return ((string)(this["borderLinesStyle"]));
}
set {
- this["blStyle"] = value;
+ this["borderLinesStyle"] = value;
}
}
@@ -326,12 +326,12 @@ public string blStyle {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
- public string glShow {
+ public string gridLinesVisible {
get {
- return ((string)(this["glShow"]));
+ return ((string)(this["gridLinesVisible"]));
}
set {
- this["glShow"] = value;
+ this["gridLinesVisible"] = value;
}
}
@@ -339,12 +339,12 @@ public string glShow {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("164, 164, 164")]
- public global::System.Drawing.Color glColor {
+ public global::System.Drawing.Color gridLinesColor {
get {
- return ((global::System.Drawing.Color)(this["glColor"]));
+ return ((global::System.Drawing.Color)(this["gridLinesColor"]));
}
set {
- this["glColor"] = value;
+ this["gridLinesColor"] = value;
}
}
@@ -352,12 +352,12 @@ public string glShow {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Solid")]
- public string glStyle {
+ public string gridLinesStyle {
get {
- return ((string)(this["glStyle"]));
+ return ((string)(this["gridLinesStyle"]));
}
set {
- this["glStyle"] = value;
+ this["gridLinesStyle"] = value;
}
}
@@ -365,12 +365,12 @@ public string glStyle {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Enable")]
- public string insKey {
+ public string insertKey {
get {
- return ((string)(this["insKey"]));
+ return ((string)(this["insertKey"]));
}
set {
- this["insKey"] = value;
+ this["insertKey"] = value;
}
}
@@ -561,12 +561,12 @@ public bool oldToolbarIcons {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
- public string mlVisible {
+ public string marginLinesVisible {
get {
- return ((string)(this["mlVisible"]));
+ return ((string)(this["marginLinesVisible"]));
}
set {
- this["mlVisible"] = value;
+ this["marginLinesVisible"] = value;
}
}
@@ -574,12 +574,12 @@ public string mlVisible {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("164, 164, 164")]
- public global::System.Drawing.Color mlColor {
+ public global::System.Drawing.Color marginLinesColor {
get {
- return ((global::System.Drawing.Color)(this["mlColor"]));
+ return ((global::System.Drawing.Color)(this["marginLinesColor"]));
}
set {
- this["mlColor"] = value;
+ this["marginLinesColor"] = value;
}
}
@@ -587,12 +587,12 @@ public string mlVisible {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Right")]
- public string mlSide {
+ public string marginLinesSide {
get {
- return ((string)(this["mlSide"]));
+ return ((string)(this["marginLinesSide"]));
}
set {
- this["mlSide"] = value;
+ this["marginLinesSide"] = value;
}
}
@@ -600,12 +600,12 @@ public string mlSide {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Solid")]
- public string mlStyle {
+ public string marginLinesStyle {
get {
- return ((string)(this["mlStyle"]));
+ return ((string)(this["marginLinesStyle"]));
}
set {
- this["mlStyle"] = value;
+ this["marginLinesStyle"] = value;
}
}
diff --git a/Crypto Notepad/Properties/Settings.settings b/Crypto Notepad/Properties/Settings.settings
index 5366199..cf48e62 100644
--- a/Crypto Notepad/Properties/Settings.settings
+++ b/Crypto Notepad/Properties/Settings.settings
@@ -53,34 +53,34 @@
False
-
+
False
-
+
240, 240, 240
-
+
164, 164, 164
-
+
False
-
+
164, 164, 164
-
+
Solid
-
+
False
-
+
164, 164, 164
-
+
Solid
-
+
Enable
@@ -125,16 +125,16 @@
False
-
+
False
-
+
164, 164, 164
-
+
Right
-
+
Solid
diff --git a/Crypto Notepad/SettingsForm.Designer.cs b/Crypto Notepad/SettingsForm.Designer.cs
index 520000b..094a2c8 100644
--- a/Crypto Notepad/SettingsForm.Designer.cs
+++ b/Crypto Notepad/SettingsForm.Designer.cs
@@ -29,87 +29,87 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsForm));
- this.lblEditorFontColor = new System.Windows.Forms.Label();
+ this.editorFontColorLabel = new System.Windows.Forms.Label();
this.colorDialog = new System.Windows.Forms.ColorDialog();
this.settingsTabControl = new System.Windows.Forms.TabControl();
this.editorTabPage = new System.Windows.Forms.TabPage();
- this.cbxOpenLinks = new System.Windows.Forms.ComboBox();
- this.lblOpenLinks = new System.Windows.Forms.Label();
- this.btnFont = new System.Windows.Forms.Button();
- this.txtPaddingLeft = new System.Windows.Forms.TextBox();
- this.lblPaddingLeft = new System.Windows.Forms.Label();
- this.cbxInsKey = new System.Windows.Forms.ComboBox();
- this.lblEditorBackColor = new System.Windows.Forms.Label();
- this.lblInsKey = new System.Windows.Forms.Label();
- this.pnlEditorBackColor = new System.Windows.Forms.Panel();
- this.pnlEditorFontColor = new System.Windows.Forms.Panel();
+ this.editorOpenLinksWithComboBox = new System.Windows.Forms.ComboBox();
+ this.editorOpenLinksWithLabel = new System.Windows.Forms.Label();
+ this.editorFontButton = new System.Windows.Forms.Button();
+ this.editorPaddingLeftTextBox = new System.Windows.Forms.TextBox();
+ this.editorPaddingLeftLabel = new System.Windows.Forms.Label();
+ this.editorInsertKeyComboBox = new System.Windows.Forms.ComboBox();
+ this.editorBackColorLabel = new System.Windows.Forms.Label();
+ this.editorInsertKeyLabel = new System.Windows.Forms.Label();
+ this.editorBackColor = new System.Windows.Forms.Panel();
+ this.editorFontColor = new System.Windows.Forms.Panel();
this.applicationTabPage = new System.Windows.Forms.TabPage();
- this.chkCloseToTray = new System.Windows.Forms.CheckBox();
- this.chkMinimizeToTray = new System.Windows.Forms.CheckBox();
- this.chkMainMenu = new System.Windows.Forms.CheckBox();
- this.chkMenuIcons = new System.Windows.Forms.CheckBox();
- this.chkUpdates = new System.Windows.Forms.CheckBox();
- this.chkAutoLock = new System.Windows.Forms.CheckBox();
+ this.closeToTrayCheckBox = new System.Windows.Forms.CheckBox();
+ this.minimizeToTrayCheckBox = new System.Windows.Forms.CheckBox();
+ this.mainMenuCheckBox = new System.Windows.Forms.CheckBox();
+ this.menuIconsCheckBox = new System.Windows.Forms.CheckBox();
+ this.autoCheckUpdatesCheckBox = new System.Windows.Forms.CheckBox();
+ this.autoLockOnMinimizeCheckBox = new System.Windows.Forms.CheckBox();
this.integrationTabPage = new System.Windows.Forms.TabPage();
- this.chkIntegrate = new System.Windows.Forms.CheckBox();
- this.chkAssociate = new System.Windows.Forms.CheckBox();
- this.chkSendTo = new System.Windows.Forms.CheckBox();
+ this.integrateCheckBox = new System.Windows.Forms.CheckBox();
+ this.associateCheckBox = new System.Windows.Forms.CheckBox();
+ this.sendToCheckBox = new System.Windows.Forms.CheckBox();
this.encryptionTabPage = new System.Windows.Forms.TabPage();
- this.txtPwdIterations = new System.Windows.Forms.TextBox();
- this.cboHash = new System.Windows.Forms.ComboBox();
- this.lblPwdIterations = new System.Windows.Forms.Label();
- this.lblKeySize = new System.Windows.Forms.Label();
- this.lblHash = new System.Windows.Forms.Label();
- this.cboKeySize = new System.Windows.Forms.ComboBox();
+ this.passwordIterationsTextBox = new System.Windows.Forms.TextBox();
+ this.hashAlgorithmComboBox = new System.Windows.Forms.ComboBox();
+ this.passwordIterationsLabel = new System.Windows.Forms.Label();
+ this.keySizeLabel = new System.Windows.Forms.Label();
+ this.hashAlgorithmLabel = new System.Windows.Forms.Label();
+ this.keySizeComboBox = new System.Windows.Forms.ComboBox();
this.lineNumbersTabPage = new System.Windows.Forms.TabPage();
- this.MLGroupBox = new System.Windows.Forms.GroupBox();
- this.MLStyleComboBox = new System.Windows.Forms.ComboBox();
- this.MLStyleLabel = new System.Windows.Forms.Label();
- this.MLSideComboBox = new System.Windows.Forms.ComboBox();
- this.MLColor = new System.Windows.Forms.Panel();
- this.MLSideLabel = new System.Windows.Forms.Label();
- this.MLColorLabel = new System.Windows.Forms.Label();
- this.MLVisibleComboBox = new System.Windows.Forms.ComboBox();
- this.MLShowLabel = new System.Windows.Forms.Label();
- this.GLGroupBox = new System.Windows.Forms.GroupBox();
- this.GLShowComboBox = new System.Windows.Forms.ComboBox();
- this.GLStyleComboBox = new System.Windows.Forms.ComboBox();
- this.GLColor = new System.Windows.Forms.Panel();
- this.GLShowLabel = new System.Windows.Forms.Label();
- this.GLStyleLabel = new System.Windows.Forms.Label();
- this.GLColorLabel = new System.Windows.Forms.Label();
- this.BLGroupBox = new System.Windows.Forms.GroupBox();
- this.BLShowСomboBox = new System.Windows.Forms.ComboBox();
- this.BLStyleComboBox = new System.Windows.Forms.ComboBox();
- this.BLColorLabel = new System.Windows.Forms.Label();
- this.BLStyleLabel = new System.Windows.Forms.Label();
- this.BLShowLabel = new System.Windows.Forms.Label();
- this.BLColor = new System.Windows.Forms.Panel();
- this.LNGroupBox = new System.Windows.Forms.GroupBox();
- this.LNVisibleComboBox = new System.Windows.Forms.ComboBox();
- this.LNBackColor = new System.Windows.Forms.Panel();
- this.LNVisibleLabel = new System.Windows.Forms.Label();
- this.LNFontColor = new System.Windows.Forms.Panel();
- this.LNFontColorLabel = new System.Windows.Forms.Label();
- this.LNBackgroundColor = new System.Windows.Forms.Label();
+ this.marginLinesGroupBox = new System.Windows.Forms.GroupBox();
+ this.marginLinesStyleComboBox = new System.Windows.Forms.ComboBox();
+ this.marginLinesStyleLabel = new System.Windows.Forms.Label();
+ this.marginLinesSideComboBox = new System.Windows.Forms.ComboBox();
+ this.marginLinesColor = new System.Windows.Forms.Panel();
+ this.marginLinesSideLabel = new System.Windows.Forms.Label();
+ this.marginLinesColorLabel = new System.Windows.Forms.Label();
+ this.marginLinesVisibleComboBox = new System.Windows.Forms.ComboBox();
+ this.marginLinesVisibleLabel = new System.Windows.Forms.Label();
+ this.gridLinesGroupBox = new System.Windows.Forms.GroupBox();
+ this.gridLinesVisibleComboBox = new System.Windows.Forms.ComboBox();
+ this.gridLinesStyleComboBox = new System.Windows.Forms.ComboBox();
+ this.gridLinesColor = new System.Windows.Forms.Panel();
+ this.gridLinesVisibleLabel = new System.Windows.Forms.Label();
+ this.gridLinesStyleLabel = new System.Windows.Forms.Label();
+ this.gridLinesColorLabel = new System.Windows.Forms.Label();
+ this.borderLinesGroupBox = new System.Windows.Forms.GroupBox();
+ this.borderLinesVisibleСomboBox = new System.Windows.Forms.ComboBox();
+ this.borderLinesStyleComboBox = new System.Windows.Forms.ComboBox();
+ this.borderLinesColorLabel = new System.Windows.Forms.Label();
+ this.borderLinesStyleLabel = new System.Windows.Forms.Label();
+ this.borderLinesVisibleLabel = new System.Windows.Forms.Label();
+ this.borderLinesColor = new System.Windows.Forms.Panel();
+ this.lineNumbersGroupBox = new System.Windows.Forms.GroupBox();
+ this.lineNumbersVisibleComboBox = new System.Windows.Forms.ComboBox();
+ this.lineNumbersBackColor = new System.Windows.Forms.Panel();
+ this.lineNumbersVisibleLabel = new System.Windows.Forms.Label();
+ this.lineNumbersFontColor = new System.Windows.Forms.Panel();
+ this.lineNumbersFontColorLabel = new System.Windows.Forms.Label();
+ this.lineNumbersBackColorLabel = new System.Windows.Forms.Label();
this.statusPanelTabPage = new System.Windows.Forms.TabPage();
- this.statusPanelVisible = new System.Windows.Forms.CheckBox();
- this.statusBackColor = new System.Windows.Forms.Panel();
- this.statusFontColor = new System.Windows.Forms.Panel();
- this.statusFontColorLabel = new System.Windows.Forms.Label();
- this.statusBackColorLabel = new System.Windows.Forms.Label();
+ this.statusPanelVisibleCheckBox = new System.Windows.Forms.CheckBox();
+ this.statusPanelBackColor = new System.Windows.Forms.Panel();
+ this.statusPanelFontColor = new System.Windows.Forms.Panel();
+ this.statusPanelFontColorLabel = new System.Windows.Forms.Label();
+ this.statusPanelBackColorLabel = new System.Windows.Forms.Label();
this.toolbarTabPage = new System.Windows.Forms.TabPage();
- this.toolbarOldIcons = new System.Windows.Forms.CheckBox();
- this.toolbarBorder = new System.Windows.Forms.CheckBox();
+ this.toolbarOldIconsCheckBox = new System.Windows.Forms.CheckBox();
+ this.toolbarBorderCheckBox = new System.Windows.Forms.CheckBox();
this.toolbarBackColor = new System.Windows.Forms.Panel();
this.toolbarBackColorLabel = new System.Windows.Forms.Label();
- this.toolbarVisible = new System.Windows.Forms.CheckBox();
+ this.toolbarVisibleCheckBox = new System.Windows.Forms.CheckBox();
this.searchPanelTabPage = new System.Windows.Forms.TabPage();
this.searchFontColor = new System.Windows.Forms.Panel();
this.searchBackColor = new System.Windows.Forms.Panel();
this.searchFontColorLabel = new System.Windows.Forms.Label();
this.searchBackColorLabel = new System.Windows.Forms.Label();
- this.lstSettingsNav = new System.Windows.Forms.ListBox();
+ this.settingsNavigation = new System.Windows.Forms.ListBox();
this.fontDialog = new System.Windows.Forms.FontDialog();
this.settingsTabControl.SuspendLayout();
this.editorTabPage.SuspendLayout();
@@ -117,23 +117,23 @@ private void InitializeComponent()
this.integrationTabPage.SuspendLayout();
this.encryptionTabPage.SuspendLayout();
this.lineNumbersTabPage.SuspendLayout();
- this.MLGroupBox.SuspendLayout();
- this.GLGroupBox.SuspendLayout();
- this.BLGroupBox.SuspendLayout();
- this.LNGroupBox.SuspendLayout();
+ this.marginLinesGroupBox.SuspendLayout();
+ this.gridLinesGroupBox.SuspendLayout();
+ this.borderLinesGroupBox.SuspendLayout();
+ this.lineNumbersGroupBox.SuspendLayout();
this.statusPanelTabPage.SuspendLayout();
this.toolbarTabPage.SuspendLayout();
this.searchPanelTabPage.SuspendLayout();
this.SuspendLayout();
//
- // lblEditorFontColor
+ // editorFontColorLabel
//
- this.lblEditorFontColor.Location = new System.Drawing.Point(6, 4);
- this.lblEditorFontColor.Name = "lblEditorFontColor";
- this.lblEditorFontColor.Size = new System.Drawing.Size(83, 21);
- this.lblEditorFontColor.TabIndex = 0;
- this.lblEditorFontColor.Text = "Font color";
- this.lblEditorFontColor.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.editorFontColorLabel.Location = new System.Drawing.Point(6, 4);
+ this.editorFontColorLabel.Name = "editorFontColorLabel";
+ this.editorFontColorLabel.Size = new System.Drawing.Size(83, 21);
+ this.editorFontColorLabel.TabIndex = 0;
+ this.editorFontColorLabel.Text = "Font color";
+ this.editorFontColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// colorDialog
//
@@ -150,12 +150,12 @@ private void InitializeComponent()
this.settingsTabControl.Controls.Add(this.statusPanelTabPage);
this.settingsTabControl.Controls.Add(this.toolbarTabPage);
this.settingsTabControl.Controls.Add(this.searchPanelTabPage);
- this.settingsTabControl.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.settingsTabControl.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.settingsTabControl.Location = new System.Drawing.Point(105, -2);
this.settingsTabControl.Multiline = true;
this.settingsTabControl.Name = "settingsTabControl";
this.settingsTabControl.SelectedIndex = 0;
- this.settingsTabControl.Size = new System.Drawing.Size(252, 301);
+ this.settingsTabControl.Size = new System.Drawing.Size(252, 285);
this.settingsTabControl.TabIndex = 4;
this.settingsTabControl.SelectedIndexChanged += new System.EventHandler(this.SettingsTabControl_SelectedIndexChanged);
//
@@ -164,821 +164,821 @@ private void InitializeComponent()
this.editorTabPage.AutoScroll = true;
this.editorTabPage.BackColor = System.Drawing.SystemColors.Window;
this.editorTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.editorTabPage.Controls.Add(this.cbxOpenLinks);
- this.editorTabPage.Controls.Add(this.lblOpenLinks);
- this.editorTabPage.Controls.Add(this.btnFont);
- this.editorTabPage.Controls.Add(this.txtPaddingLeft);
- this.editorTabPage.Controls.Add(this.lblPaddingLeft);
- this.editorTabPage.Controls.Add(this.cbxInsKey);
- this.editorTabPage.Controls.Add(this.lblEditorBackColor);
- this.editorTabPage.Controls.Add(this.lblInsKey);
- this.editorTabPage.Controls.Add(this.pnlEditorBackColor);
- this.editorTabPage.Controls.Add(this.lblEditorFontColor);
- this.editorTabPage.Controls.Add(this.pnlEditorFontColor);
+ this.editorTabPage.Controls.Add(this.editorOpenLinksWithComboBox);
+ this.editorTabPage.Controls.Add(this.editorOpenLinksWithLabel);
+ this.editorTabPage.Controls.Add(this.editorFontButton);
+ this.editorTabPage.Controls.Add(this.editorPaddingLeftTextBox);
+ this.editorTabPage.Controls.Add(this.editorPaddingLeftLabel);
+ this.editorTabPage.Controls.Add(this.editorInsertKeyComboBox);
+ this.editorTabPage.Controls.Add(this.editorBackColorLabel);
+ this.editorTabPage.Controls.Add(this.editorInsertKeyLabel);
+ this.editorTabPage.Controls.Add(this.editorBackColor);
+ this.editorTabPage.Controls.Add(this.editorFontColorLabel);
+ this.editorTabPage.Controls.Add(this.editorFontColor);
this.editorTabPage.Location = new System.Drawing.Point(4, 44);
this.editorTabPage.Name = "editorTabPage";
this.editorTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.editorTabPage.Size = new System.Drawing.Size(244, 253);
+ this.editorTabPage.Size = new System.Drawing.Size(244, 237);
this.editorTabPage.TabIndex = 0;
this.editorTabPage.Text = "edt";
//
- // cbxOpenLinks
+ // editorOpenLinksWithComboBox
//
- this.cbxOpenLinks.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cbxOpenLinks.FormattingEnabled = true;
- this.cbxOpenLinks.Items.AddRange(new object[] {
+ this.editorOpenLinksWithComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.editorOpenLinksWithComboBox.FormattingEnabled = true;
+ this.editorOpenLinksWithComboBox.Items.AddRange(new object[] {
"LMB Click",
"Shift+LMB",
"Control+LMB"});
- this.cbxOpenLinks.Location = new System.Drawing.Point(132, 113);
- this.cbxOpenLinks.Name = "cbxOpenLinks";
- this.cbxOpenLinks.Size = new System.Drawing.Size(100, 23);
- this.cbxOpenLinks.TabIndex = 19;
- this.cbxOpenLinks.DropDownClosed += new System.EventHandler(this.CbxOpenLinks_DropDownClosed);
+ this.editorOpenLinksWithComboBox.Location = new System.Drawing.Point(132, 113);
+ this.editorOpenLinksWithComboBox.Name = "editorOpenLinksWithComboBox";
+ this.editorOpenLinksWithComboBox.Size = new System.Drawing.Size(100, 23);
+ this.editorOpenLinksWithComboBox.TabIndex = 19;
+ this.editorOpenLinksWithComboBox.DropDownClosed += new System.EventHandler(this.EditorOpenLinksWithComboBox_DropDownClosed);
//
- // lblOpenLinks
+ // editorOpenLinksWithLabel
//
- this.lblOpenLinks.AutoSize = true;
- this.lblOpenLinks.Location = new System.Drawing.Point(6, 116);
- this.lblOpenLinks.Name = "lblOpenLinks";
- this.lblOpenLinks.Size = new System.Drawing.Size(90, 15);
- this.lblOpenLinks.TabIndex = 18;
- this.lblOpenLinks.Text = "Open links with";
+ this.editorOpenLinksWithLabel.AutoSize = true;
+ this.editorOpenLinksWithLabel.Location = new System.Drawing.Point(6, 116);
+ this.editorOpenLinksWithLabel.Name = "editorOpenLinksWithLabel";
+ this.editorOpenLinksWithLabel.Size = new System.Drawing.Size(89, 15);
+ this.editorOpenLinksWithLabel.TabIndex = 18;
+ this.editorOpenLinksWithLabel.Text = "Open links with";
//
- // btnFont
+ // editorFontButton
//
- this.btnFont.Location = new System.Drawing.Point(9, 142);
- this.btnFont.Name = "btnFont";
- this.btnFont.Size = new System.Drawing.Size(223, 23);
- this.btnFont.TabIndex = 17;
- this.btnFont.Text = "Font";
- this.btnFont.UseVisualStyleBackColor = true;
- this.btnFont.Click += new System.EventHandler(this.BtnFont_Click);
+ this.editorFontButton.Location = new System.Drawing.Point(9, 142);
+ this.editorFontButton.Name = "editorFontButton";
+ this.editorFontButton.Size = new System.Drawing.Size(223, 23);
+ this.editorFontButton.TabIndex = 17;
+ this.editorFontButton.Text = "Font";
+ this.editorFontButton.UseVisualStyleBackColor = true;
+ this.editorFontButton.Click += new System.EventHandler(this.EditorFontButton_Click);
//
- // txtPaddingLeft
+ // editorPaddingLeftTextBox
//
- this.txtPaddingLeft.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.txtPaddingLeft.Location = new System.Drawing.Point(132, 87);
- this.txtPaddingLeft.Name = "txtPaddingLeft";
- this.txtPaddingLeft.Size = new System.Drawing.Size(100, 20);
- this.txtPaddingLeft.TabIndex = 16;
- this.txtPaddingLeft.Click += new System.EventHandler(this.TxtPaddingLeft_Click);
- this.txtPaddingLeft.TextChanged += new System.EventHandler(this.TxtPaddingLeft_TextChanged);
- this.txtPaddingLeft.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TxtPaddingLeft_KeyPress);
+ this.editorPaddingLeftTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.editorPaddingLeftTextBox.Location = new System.Drawing.Point(132, 87);
+ this.editorPaddingLeftTextBox.Name = "editorPaddingLeftTextBox";
+ this.editorPaddingLeftTextBox.Size = new System.Drawing.Size(100, 20);
+ this.editorPaddingLeftTextBox.TabIndex = 16;
+ this.editorPaddingLeftTextBox.Click += new System.EventHandler(this.EditorPaddingLeftTextBox_Click);
+ this.editorPaddingLeftTextBox.TextChanged += new System.EventHandler(this.EditorPaddingLeftTextBox_TextChanged);
+ this.editorPaddingLeftTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.EditorPaddingLeftTextBox_KeyPress);
//
- // lblPaddingLeft
+ // editorPaddingLeftLabel
//
- this.lblPaddingLeft.AutoSize = true;
- this.lblPaddingLeft.Location = new System.Drawing.Point(6, 88);
- this.lblPaddingLeft.Name = "lblPaddingLeft";
- this.lblPaddingLeft.Size = new System.Drawing.Size(73, 15);
- this.lblPaddingLeft.TabIndex = 15;
- this.lblPaddingLeft.Text = "Padding-left";
+ this.editorPaddingLeftLabel.AutoSize = true;
+ this.editorPaddingLeftLabel.Location = new System.Drawing.Point(6, 88);
+ this.editorPaddingLeftLabel.Name = "editorPaddingLeftLabel";
+ this.editorPaddingLeftLabel.Size = new System.Drawing.Size(73, 15);
+ this.editorPaddingLeftLabel.TabIndex = 15;
+ this.editorPaddingLeftLabel.Text = "Padding-left";
//
- // cbxInsKey
+ // editorInsertKeyComboBox
//
- this.cbxInsKey.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cbxInsKey.FormattingEnabled = true;
- this.cbxInsKey.Items.AddRange(new object[] {
+ this.editorInsertKeyComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.editorInsertKeyComboBox.FormattingEnabled = true;
+ this.editorInsertKeyComboBox.Items.AddRange(new object[] {
"Enable",
"Disable"});
- this.cbxInsKey.Location = new System.Drawing.Point(132, 58);
- this.cbxInsKey.Name = "cbxInsKey";
- this.cbxInsKey.Size = new System.Drawing.Size(100, 23);
- this.cbxInsKey.TabIndex = 14;
- this.cbxInsKey.DropDownClosed += new System.EventHandler(this.InsKeyComboBox_DropDownClosed);
+ this.editorInsertKeyComboBox.Location = new System.Drawing.Point(132, 58);
+ this.editorInsertKeyComboBox.Name = "editorInsertKeyComboBox";
+ this.editorInsertKeyComboBox.Size = new System.Drawing.Size(100, 23);
+ this.editorInsertKeyComboBox.TabIndex = 14;
+ this.editorInsertKeyComboBox.DropDownClosed += new System.EventHandler(this.EditorInsertKeyComboBox_DropDownClosed);
//
- // lblEditorBackColor
+ // editorBackColorLabel
//
- this.lblEditorBackColor.Location = new System.Drawing.Point(6, 31);
- this.lblEditorBackColor.Name = "lblEditorBackColor";
- this.lblEditorBackColor.Size = new System.Drawing.Size(103, 21);
- this.lblEditorBackColor.TabIndex = 10;
- this.lblEditorBackColor.Text = "Background color";
- this.lblEditorBackColor.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.editorBackColorLabel.Location = new System.Drawing.Point(6, 31);
+ this.editorBackColorLabel.Name = "editorBackColorLabel";
+ this.editorBackColorLabel.Size = new System.Drawing.Size(103, 21);
+ this.editorBackColorLabel.TabIndex = 10;
+ this.editorBackColorLabel.Text = "Background color";
+ this.editorBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // lblInsKey
+ // editorInsertKeyLabel
//
- this.lblInsKey.AutoSize = true;
- this.lblInsKey.Location = new System.Drawing.Point(6, 61);
- this.lblInsKey.Name = "lblInsKey";
- this.lblInsKey.Size = new System.Drawing.Size(58, 15);
- this.lblInsKey.TabIndex = 13;
- this.lblInsKey.Text = "Insert key";
+ this.editorInsertKeyLabel.AutoSize = true;
+ this.editorInsertKeyLabel.Location = new System.Drawing.Point(6, 61);
+ this.editorInsertKeyLabel.Name = "editorInsertKeyLabel";
+ this.editorInsertKeyLabel.Size = new System.Drawing.Size(57, 15);
+ this.editorInsertKeyLabel.TabIndex = 13;
+ this.editorInsertKeyLabel.Text = "Insert key";
//
- // pnlEditorBackColor
+ // editorBackColor
//
- this.pnlEditorBackColor.BackColor = System.Drawing.SystemColors.Control;
- this.pnlEditorBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.pnlEditorBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.pnlEditorBackColor.Location = new System.Drawing.Point(132, 31);
- this.pnlEditorBackColor.Name = "pnlEditorBackColor";
- this.pnlEditorBackColor.Size = new System.Drawing.Size(100, 21);
- this.pnlEditorBackColor.TabIndex = 8;
- this.pnlEditorBackColor.Click += new System.EventHandler(this.EditorBGColor_Click);
+ this.editorBackColor.BackColor = System.Drawing.SystemColors.Control;
+ this.editorBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.editorBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.editorBackColor.Location = new System.Drawing.Point(132, 31);
+ this.editorBackColor.Name = "editorBackColor";
+ this.editorBackColor.Size = new System.Drawing.Size(100, 21);
+ this.editorBackColor.TabIndex = 8;
+ this.editorBackColor.Click += new System.EventHandler(this.EditorBackColor_Click);
//
- // pnlEditorFontColor
+ // editorFontColor
//
- this.pnlEditorFontColor.BackColor = System.Drawing.Color.Black;
- this.pnlEditorFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.pnlEditorFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.pnlEditorFontColor.Location = new System.Drawing.Point(132, 4);
- this.pnlEditorFontColor.Name = "pnlEditorFontColor";
- this.pnlEditorFontColor.Size = new System.Drawing.Size(100, 21);
- this.pnlEditorFontColor.TabIndex = 7;
- this.pnlEditorFontColor.Click += new System.EventHandler(this.EditorFontColor_Click);
+ this.editorFontColor.BackColor = System.Drawing.Color.Black;
+ this.editorFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.editorFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.editorFontColor.Location = new System.Drawing.Point(132, 4);
+ this.editorFontColor.Name = "editorFontColor";
+ this.editorFontColor.Size = new System.Drawing.Size(100, 21);
+ this.editorFontColor.TabIndex = 7;
+ this.editorFontColor.Click += new System.EventHandler(this.EditorFontColor_Click);
//
// applicationTabPage
//
this.applicationTabPage.BackColor = System.Drawing.SystemColors.Window;
this.applicationTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.applicationTabPage.Controls.Add(this.chkCloseToTray);
- this.applicationTabPage.Controls.Add(this.chkMinimizeToTray);
- this.applicationTabPage.Controls.Add(this.chkMainMenu);
- this.applicationTabPage.Controls.Add(this.chkMenuIcons);
- this.applicationTabPage.Controls.Add(this.chkUpdates);
- this.applicationTabPage.Controls.Add(this.chkAutoLock);
+ this.applicationTabPage.Controls.Add(this.closeToTrayCheckBox);
+ this.applicationTabPage.Controls.Add(this.minimizeToTrayCheckBox);
+ this.applicationTabPage.Controls.Add(this.mainMenuCheckBox);
+ this.applicationTabPage.Controls.Add(this.menuIconsCheckBox);
+ this.applicationTabPage.Controls.Add(this.autoCheckUpdatesCheckBox);
+ this.applicationTabPage.Controls.Add(this.autoLockOnMinimizeCheckBox);
this.applicationTabPage.Location = new System.Drawing.Point(4, 44);
this.applicationTabPage.Name = "applicationTabPage";
this.applicationTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.applicationTabPage.Size = new System.Drawing.Size(244, 253);
+ this.applicationTabPage.Size = new System.Drawing.Size(244, 237);
this.applicationTabPage.TabIndex = 2;
this.applicationTabPage.Text = "app";
//
- // chkCloseToTray
+ // closeToTrayCheckBox
//
- this.chkCloseToTray.AutoSize = true;
- this.chkCloseToTray.Location = new System.Drawing.Point(7, 130);
- this.chkCloseToTray.Name = "chkCloseToTray";
- this.chkCloseToTray.Size = new System.Drawing.Size(92, 19);
- this.chkCloseToTray.TabIndex = 10;
- this.chkCloseToTray.Text = "Close to tray";
- this.chkCloseToTray.UseVisualStyleBackColor = true;
- this.chkCloseToTray.Click += new System.EventHandler(this.ChkCloseToTray_Click);
+ this.closeToTrayCheckBox.AutoSize = true;
+ this.closeToTrayCheckBox.Location = new System.Drawing.Point(7, 130);
+ this.closeToTrayCheckBox.Name = "closeToTrayCheckBox";
+ this.closeToTrayCheckBox.Size = new System.Drawing.Size(92, 19);
+ this.closeToTrayCheckBox.TabIndex = 10;
+ this.closeToTrayCheckBox.Text = "Close to tray";
+ this.closeToTrayCheckBox.UseVisualStyleBackColor = true;
+ this.closeToTrayCheckBox.Click += new System.EventHandler(this.CloseToTrayCheckBox_Click);
//
- // chkMinimizeToTray
+ // minimizeToTrayCheckBox
//
- this.chkMinimizeToTray.AutoSize = true;
- this.chkMinimizeToTray.Location = new System.Drawing.Point(7, 105);
- this.chkMinimizeToTray.Name = "chkMinimizeToTray";
- this.chkMinimizeToTray.Size = new System.Drawing.Size(112, 19);
- this.chkMinimizeToTray.TabIndex = 9;
- this.chkMinimizeToTray.Text = "Minimize to tray";
- this.chkMinimizeToTray.UseVisualStyleBackColor = true;
- this.chkMinimizeToTray.Click += new System.EventHandler(this.ChkMinimizeToTray_Click);
+ this.minimizeToTrayCheckBox.AutoSize = true;
+ this.minimizeToTrayCheckBox.Location = new System.Drawing.Point(7, 105);
+ this.minimizeToTrayCheckBox.Name = "minimizeToTrayCheckBox";
+ this.minimizeToTrayCheckBox.Size = new System.Drawing.Size(112, 19);
+ this.minimizeToTrayCheckBox.TabIndex = 9;
+ this.minimizeToTrayCheckBox.Text = "Minimize to tray";
+ this.minimizeToTrayCheckBox.UseVisualStyleBackColor = true;
+ this.minimizeToTrayCheckBox.Click += new System.EventHandler(this.MinimizeToTrayCheckBox_Click);
//
- // chkMainMenu
+ // mainMenuCheckBox
//
- this.chkMainMenu.AutoSize = true;
- this.chkMainMenu.Location = new System.Drawing.Point(7, 55);
- this.chkMainMenu.Name = "chkMainMenu";
- this.chkMainMenu.Size = new System.Drawing.Size(89, 19);
- this.chkMainMenu.TabIndex = 8;
- this.chkMainMenu.Text = "Main menu";
- this.chkMainMenu.UseVisualStyleBackColor = true;
- this.chkMainMenu.Click += new System.EventHandler(this.MainMenuCheckBox_Click);
+ this.mainMenuCheckBox.AutoSize = true;
+ this.mainMenuCheckBox.Location = new System.Drawing.Point(7, 55);
+ this.mainMenuCheckBox.Name = "mainMenuCheckBox";
+ this.mainMenuCheckBox.Size = new System.Drawing.Size(87, 19);
+ this.mainMenuCheckBox.TabIndex = 8;
+ this.mainMenuCheckBox.Text = "Main menu";
+ this.mainMenuCheckBox.UseVisualStyleBackColor = true;
+ this.mainMenuCheckBox.Click += new System.EventHandler(this.MainMenuCheckBox_Click);
//
- // chkMenuIcons
+ // menuIconsCheckBox
//
- this.chkMenuIcons.AutoSize = true;
- this.chkMenuIcons.Location = new System.Drawing.Point(7, 80);
- this.chkMenuIcons.Name = "chkMenuIcons";
- this.chkMenuIcons.Size = new System.Drawing.Size(90, 19);
- this.chkMenuIcons.TabIndex = 7;
- this.chkMenuIcons.Text = "Menu icons";
- this.chkMenuIcons.UseVisualStyleBackColor = true;
- this.chkMenuIcons.Click += new System.EventHandler(this.MenuIconsCheckBox_Click);
+ this.menuIconsCheckBox.AutoSize = true;
+ this.menuIconsCheckBox.Location = new System.Drawing.Point(7, 80);
+ this.menuIconsCheckBox.Name = "menuIconsCheckBox";
+ this.menuIconsCheckBox.Size = new System.Drawing.Size(88, 19);
+ this.menuIconsCheckBox.TabIndex = 7;
+ this.menuIconsCheckBox.Text = "Menu icons";
+ this.menuIconsCheckBox.UseVisualStyleBackColor = true;
+ this.menuIconsCheckBox.Click += new System.EventHandler(this.MenuIconsCheckBox_Click);
//
- // chkUpdates
+ // autoCheckUpdatesCheckBox
//
- this.chkUpdates.AutoSize = true;
- this.chkUpdates.Location = new System.Drawing.Point(7, 30);
- this.chkUpdates.Name = "chkUpdates";
- this.chkUpdates.Size = new System.Drawing.Size(132, 19);
- this.chkUpdates.TabIndex = 1;
- this.chkUpdates.Text = "Auto check updates";
- this.chkUpdates.UseVisualStyleBackColor = true;
- this.chkUpdates.Click += new System.EventHandler(this.UpdatesCheckBox_Click);
+ this.autoCheckUpdatesCheckBox.AutoSize = true;
+ this.autoCheckUpdatesCheckBox.Location = new System.Drawing.Point(7, 30);
+ this.autoCheckUpdatesCheckBox.Name = "autoCheckUpdatesCheckBox";
+ this.autoCheckUpdatesCheckBox.Size = new System.Drawing.Size(131, 19);
+ this.autoCheckUpdatesCheckBox.TabIndex = 1;
+ this.autoCheckUpdatesCheckBox.Text = "Auto check updates";
+ this.autoCheckUpdatesCheckBox.UseVisualStyleBackColor = true;
+ this.autoCheckUpdatesCheckBox.Click += new System.EventHandler(this.AutoCheckUpdatesCheckBox_Click);
//
- // chkAutoLock
+ // autoLockOnMinimizeCheckBox
//
- this.chkAutoLock.AutoSize = true;
- this.chkAutoLock.Location = new System.Drawing.Point(7, 7);
- this.chkAutoLock.Name = "chkAutoLock";
- this.chkAutoLock.Size = new System.Drawing.Size(146, 19);
- this.chkAutoLock.TabIndex = 3;
- this.chkAutoLock.Text = "Auto lock on minimize";
- this.chkAutoLock.UseVisualStyleBackColor = true;
- this.chkAutoLock.Click += new System.EventHandler(this.AutoLockCheckBox_Click);
+ this.autoLockOnMinimizeCheckBox.AutoSize = true;
+ this.autoLockOnMinimizeCheckBox.Location = new System.Drawing.Point(7, 7);
+ this.autoLockOnMinimizeCheckBox.Name = "autoLockOnMinimizeCheckBox";
+ this.autoLockOnMinimizeCheckBox.Size = new System.Drawing.Size(146, 19);
+ this.autoLockOnMinimizeCheckBox.TabIndex = 3;
+ this.autoLockOnMinimizeCheckBox.Text = "Auto lock on minimize";
+ this.autoLockOnMinimizeCheckBox.UseVisualStyleBackColor = true;
+ this.autoLockOnMinimizeCheckBox.Click += new System.EventHandler(this.AutoLockOnMinimizeCheckBox_Click);
//
// integrationTabPage
//
this.integrationTabPage.BackColor = System.Drawing.SystemColors.Window;
this.integrationTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.integrationTabPage.Controls.Add(this.chkIntegrate);
- this.integrationTabPage.Controls.Add(this.chkAssociate);
- this.integrationTabPage.Controls.Add(this.chkSendTo);
+ this.integrationTabPage.Controls.Add(this.integrateCheckBox);
+ this.integrationTabPage.Controls.Add(this.associateCheckBox);
+ this.integrationTabPage.Controls.Add(this.sendToCheckBox);
this.integrationTabPage.Location = new System.Drawing.Point(4, 44);
this.integrationTabPage.Name = "integrationTabPage";
this.integrationTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.integrationTabPage.Size = new System.Drawing.Size(244, 253);
+ this.integrationTabPage.Size = new System.Drawing.Size(244, 237);
this.integrationTabPage.TabIndex = 3;
this.integrationTabPage.Text = "intgr";
//
- // chkIntegrate
+ // integrateCheckBox
//
- this.chkIntegrate.AutoSize = true;
- this.chkIntegrate.Location = new System.Drawing.Point(7, 7);
- this.chkIntegrate.Name = "chkIntegrate";
- this.chkIntegrate.Size = new System.Drawing.Size(227, 19);
- this.chkIntegrate.TabIndex = 6;
- this.chkIntegrate.Text = "Integrate with windows context menu";
- this.chkIntegrate.UseVisualStyleBackColor = true;
- this.chkIntegrate.Click += new System.EventHandler(this.IntegrateCheckBox_Click);
+ this.integrateCheckBox.AutoSize = true;
+ this.integrateCheckBox.Location = new System.Drawing.Point(7, 7);
+ this.integrateCheckBox.Name = "integrateCheckBox";
+ this.integrateCheckBox.Size = new System.Drawing.Size(226, 19);
+ this.integrateCheckBox.TabIndex = 6;
+ this.integrateCheckBox.Text = "Integrate with windows context menu";
+ this.integrateCheckBox.UseVisualStyleBackColor = true;
+ this.integrateCheckBox.Click += new System.EventHandler(this.IntegrateCheckBox_Click);
//
- // chkAssociate
+ // associateCheckBox
//
- this.chkAssociate.AutoSize = true;
- this.chkAssociate.Location = new System.Drawing.Point(7, 30);
- this.chkAssociate.Name = "chkAssociate";
- this.chkAssociate.Size = new System.Drawing.Size(159, 19);
- this.chkAssociate.TabIndex = 0;
- this.chkAssociate.Text = "Associate with *.cnp files";
- this.chkAssociate.UseVisualStyleBackColor = true;
- this.chkAssociate.Click += new System.EventHandler(this.AssociateCheckBox_Click);
+ this.associateCheckBox.AutoSize = true;
+ this.associateCheckBox.Location = new System.Drawing.Point(7, 30);
+ this.associateCheckBox.Name = "associateCheckBox";
+ this.associateCheckBox.Size = new System.Drawing.Size(157, 19);
+ this.associateCheckBox.TabIndex = 0;
+ this.associateCheckBox.Text = "Associate with *.cnp files";
+ this.associateCheckBox.UseVisualStyleBackColor = true;
+ this.associateCheckBox.Click += new System.EventHandler(this.AssociateCheckBox_Click);
//
- // chkSendTo
+ // sendToCheckBox
//
- this.chkSendTo.AutoSize = true;
- this.chkSendTo.Location = new System.Drawing.Point(7, 53);
- this.chkSendTo.Name = "chkSendTo";
- this.chkSendTo.Size = new System.Drawing.Size(158, 19);
- this.chkSendTo.TabIndex = 5;
- this.chkSendTo.Text = "Show in \"Send to\" menu";
- this.chkSendTo.UseVisualStyleBackColor = true;
- this.chkSendTo.Click += new System.EventHandler(this.SendToCheckBox_Click);
+ this.sendToCheckBox.AutoSize = true;
+ this.sendToCheckBox.Location = new System.Drawing.Point(7, 53);
+ this.sendToCheckBox.Name = "sendToCheckBox";
+ this.sendToCheckBox.Size = new System.Drawing.Size(155, 19);
+ this.sendToCheckBox.TabIndex = 5;
+ this.sendToCheckBox.Text = "Show in \"Send to\" menu";
+ this.sendToCheckBox.UseVisualStyleBackColor = true;
+ this.sendToCheckBox.Click += new System.EventHandler(this.SendToCheckBox_Click);
//
// encryptionTabPage
//
this.encryptionTabPage.BackColor = System.Drawing.SystemColors.Window;
this.encryptionTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.encryptionTabPage.Controls.Add(this.txtPwdIterations);
- this.encryptionTabPage.Controls.Add(this.cboHash);
- this.encryptionTabPage.Controls.Add(this.lblPwdIterations);
- this.encryptionTabPage.Controls.Add(this.lblKeySize);
- this.encryptionTabPage.Controls.Add(this.lblHash);
- this.encryptionTabPage.Controls.Add(this.cboKeySize);
+ this.encryptionTabPage.Controls.Add(this.passwordIterationsTextBox);
+ this.encryptionTabPage.Controls.Add(this.hashAlgorithmComboBox);
+ this.encryptionTabPage.Controls.Add(this.passwordIterationsLabel);
+ this.encryptionTabPage.Controls.Add(this.keySizeLabel);
+ this.encryptionTabPage.Controls.Add(this.hashAlgorithmLabel);
+ this.encryptionTabPage.Controls.Add(this.keySizeComboBox);
this.encryptionTabPage.Location = new System.Drawing.Point(4, 44);
this.encryptionTabPage.Name = "encryptionTabPage";
this.encryptionTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.encryptionTabPage.Size = new System.Drawing.Size(244, 253);
+ this.encryptionTabPage.Size = new System.Drawing.Size(244, 237);
this.encryptionTabPage.TabIndex = 1;
this.encryptionTabPage.Text = "enc";
//
- // txtPwdIterations
+ // passwordIterationsTextBox
//
- this.txtPwdIterations.Location = new System.Drawing.Point(132, 62);
- this.txtPwdIterations.Name = "txtPwdIterations";
- this.txtPwdIterations.Size = new System.Drawing.Size(100, 21);
- this.txtPwdIterations.TabIndex = 7;
- this.txtPwdIterations.Text = "1000";
- this.txtPwdIterations.TextChanged += new System.EventHandler(this.PwdIterationsTextBox_TextChanged);
- this.txtPwdIterations.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PwdIterationsTextBox_KeyPress);
+ this.passwordIterationsTextBox.Location = new System.Drawing.Point(132, 62);
+ this.passwordIterationsTextBox.Name = "passwordIterationsTextBox";
+ this.passwordIterationsTextBox.Size = new System.Drawing.Size(100, 23);
+ this.passwordIterationsTextBox.TabIndex = 7;
+ this.passwordIterationsTextBox.Text = "1000";
+ this.passwordIterationsTextBox.TextChanged += new System.EventHandler(this.PasswordIterationsTextBox_TextChanged);
+ this.passwordIterationsTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PasswordIterationsTextBox_KeyPress);
//
- // cboHash
+ // hashAlgorithmComboBox
//
- this.cboHash.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cboHash.FormattingEnabled = true;
- this.cboHash.Items.AddRange(new object[] {
+ this.hashAlgorithmComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.hashAlgorithmComboBox.FormattingEnabled = true;
+ this.hashAlgorithmComboBox.Items.AddRange(new object[] {
"MD5",
"SHA1",
"SHA256",
"SHA384",
"SHA512"});
- this.cboHash.Location = new System.Drawing.Point(132, 4);
- this.cboHash.Name = "cboHash";
- this.cboHash.Size = new System.Drawing.Size(100, 23);
- this.cboHash.TabIndex = 5;
- this.cboHash.DropDownClosed += new System.EventHandler(this.HashComboBox_DropDownClosed);
+ this.hashAlgorithmComboBox.Location = new System.Drawing.Point(132, 4);
+ this.hashAlgorithmComboBox.Name = "hashAlgorithmComboBox";
+ this.hashAlgorithmComboBox.Size = new System.Drawing.Size(100, 23);
+ this.hashAlgorithmComboBox.TabIndex = 5;
+ this.hashAlgorithmComboBox.DropDownClosed += new System.EventHandler(this.HashAlgorithmComboBox_DropDownClosed);
//
- // lblPwdIterations
+ // passwordIterationsLabel
//
- this.lblPwdIterations.AutoSize = true;
- this.lblPwdIterations.BackColor = System.Drawing.Color.Transparent;
- this.lblPwdIterations.Location = new System.Drawing.Point(6, 65);
- this.lblPwdIterations.Name = "lblPwdIterations";
- this.lblPwdIterations.Size = new System.Drawing.Size(114, 15);
- this.lblPwdIterations.TabIndex = 6;
- this.lblPwdIterations.Text = "Password iterations";
+ this.passwordIterationsLabel.AutoSize = true;
+ this.passwordIterationsLabel.BackColor = System.Drawing.Color.Transparent;
+ this.passwordIterationsLabel.Location = new System.Drawing.Point(6, 65);
+ this.passwordIterationsLabel.Name = "passwordIterationsLabel";
+ this.passwordIterationsLabel.Size = new System.Drawing.Size(109, 15);
+ this.passwordIterationsLabel.TabIndex = 6;
+ this.passwordIterationsLabel.Text = "Password iterations";
//
- // lblKeySize
+ // keySizeLabel
//
- this.lblKeySize.AutoSize = true;
- this.lblKeySize.Location = new System.Drawing.Point(6, 36);
- this.lblKeySize.Name = "lblKeySize";
- this.lblKeySize.Size = new System.Drawing.Size(52, 15);
- this.lblKeySize.TabIndex = 1;
- this.lblKeySize.Text = "Key size";
+ this.keySizeLabel.AutoSize = true;
+ this.keySizeLabel.Location = new System.Drawing.Point(6, 36);
+ this.keySizeLabel.Name = "keySizeLabel";
+ this.keySizeLabel.Size = new System.Drawing.Size(48, 15);
+ this.keySizeLabel.TabIndex = 1;
+ this.keySizeLabel.Text = "Key size";
//
- // lblHash
+ // hashAlgorithmLabel
//
- this.lblHash.AutoSize = true;
- this.lblHash.Location = new System.Drawing.Point(6, 7);
- this.lblHash.Name = "lblHash";
- this.lblHash.Size = new System.Drawing.Size(94, 15);
- this.lblHash.TabIndex = 0;
- this.lblHash.Text = "Hash algorithm ";
+ this.hashAlgorithmLabel.AutoSize = true;
+ this.hashAlgorithmLabel.Location = new System.Drawing.Point(6, 7);
+ this.hashAlgorithmLabel.Name = "hashAlgorithmLabel";
+ this.hashAlgorithmLabel.Size = new System.Drawing.Size(92, 15);
+ this.hashAlgorithmLabel.TabIndex = 0;
+ this.hashAlgorithmLabel.Text = "Hash algorithm ";
//
- // cboKeySize
+ // keySizeComboBox
//
- this.cboKeySize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cboKeySize.FormattingEnabled = true;
- this.cboKeySize.Items.AddRange(new object[] {
+ this.keySizeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.keySizeComboBox.FormattingEnabled = true;
+ this.keySizeComboBox.Items.AddRange(new object[] {
"128",
"192",
"256"});
- this.cboKeySize.Location = new System.Drawing.Point(132, 33);
- this.cboKeySize.Name = "cboKeySize";
- this.cboKeySize.Size = new System.Drawing.Size(100, 23);
- this.cboKeySize.TabIndex = 3;
- this.cboKeySize.DropDownClosed += new System.EventHandler(this.KeySizeComboBox_DropDownClosed);
+ this.keySizeComboBox.Location = new System.Drawing.Point(132, 33);
+ this.keySizeComboBox.Name = "keySizeComboBox";
+ this.keySizeComboBox.Size = new System.Drawing.Size(100, 23);
+ this.keySizeComboBox.TabIndex = 3;
+ this.keySizeComboBox.DropDownClosed += new System.EventHandler(this.KeySizeComboBox_DropDownClosed);
//
// lineNumbersTabPage
//
this.lineNumbersTabPage.AutoScroll = true;
this.lineNumbersTabPage.BackColor = System.Drawing.SystemColors.Window;
this.lineNumbersTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.lineNumbersTabPage.Controls.Add(this.MLGroupBox);
- this.lineNumbersTabPage.Controls.Add(this.GLGroupBox);
- this.lineNumbersTabPage.Controls.Add(this.BLGroupBox);
- this.lineNumbersTabPage.Controls.Add(this.LNGroupBox);
+ this.lineNumbersTabPage.Controls.Add(this.marginLinesGroupBox);
+ this.lineNumbersTabPage.Controls.Add(this.gridLinesGroupBox);
+ this.lineNumbersTabPage.Controls.Add(this.borderLinesGroupBox);
+ this.lineNumbersTabPage.Controls.Add(this.lineNumbersGroupBox);
this.lineNumbersTabPage.Location = new System.Drawing.Point(4, 44);
this.lineNumbersTabPage.Name = "lineNumbersTabPage";
this.lineNumbersTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.lineNumbersTabPage.Size = new System.Drawing.Size(244, 253);
+ this.lineNumbersTabPage.Size = new System.Drawing.Size(244, 237);
this.lineNumbersTabPage.TabIndex = 4;
this.lineNumbersTabPage.Text = "ln";
//
- // MLGroupBox
+ // marginLinesGroupBox
//
- this.MLGroupBox.BackColor = System.Drawing.Color.Transparent;
- this.MLGroupBox.Controls.Add(this.MLStyleComboBox);
- this.MLGroupBox.Controls.Add(this.MLStyleLabel);
- this.MLGroupBox.Controls.Add(this.MLSideComboBox);
- this.MLGroupBox.Controls.Add(this.MLColor);
- this.MLGroupBox.Controls.Add(this.MLSideLabel);
- this.MLGroupBox.Controls.Add(this.MLColorLabel);
- this.MLGroupBox.Controls.Add(this.MLVisibleComboBox);
- this.MLGroupBox.Controls.Add(this.MLShowLabel);
- this.MLGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
- this.MLGroupBox.Location = new System.Drawing.Point(3, 333);
- this.MLGroupBox.Name = "MLGroupBox";
- this.MLGroupBox.Size = new System.Drawing.Size(219, 143);
- this.MLGroupBox.TabIndex = 7;
- this.MLGroupBox.TabStop = false;
- this.MLGroupBox.Text = "Margin lines";
+ this.marginLinesGroupBox.BackColor = System.Drawing.Color.Transparent;
+ this.marginLinesGroupBox.Controls.Add(this.marginLinesStyleComboBox);
+ this.marginLinesGroupBox.Controls.Add(this.marginLinesStyleLabel);
+ this.marginLinesGroupBox.Controls.Add(this.marginLinesSideComboBox);
+ this.marginLinesGroupBox.Controls.Add(this.marginLinesColor);
+ this.marginLinesGroupBox.Controls.Add(this.marginLinesSideLabel);
+ this.marginLinesGroupBox.Controls.Add(this.marginLinesColorLabel);
+ this.marginLinesGroupBox.Controls.Add(this.marginLinesVisibleComboBox);
+ this.marginLinesGroupBox.Controls.Add(this.marginLinesVisibleLabel);
+ this.marginLinesGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
+ this.marginLinesGroupBox.Location = new System.Drawing.Point(3, 333);
+ this.marginLinesGroupBox.Name = "marginLinesGroupBox";
+ this.marginLinesGroupBox.Size = new System.Drawing.Size(219, 143);
+ this.marginLinesGroupBox.TabIndex = 7;
+ this.marginLinesGroupBox.TabStop = false;
+ this.marginLinesGroupBox.Text = "Margin lines";
//
- // MLStyleComboBox
+ // marginLinesStyleComboBox
//
- this.MLStyleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.MLStyleComboBox.FormattingEnabled = true;
- this.MLStyleComboBox.Items.AddRange(new object[] {
+ this.marginLinesStyleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.marginLinesStyleComboBox.FormattingEnabled = true;
+ this.marginLinesStyleComboBox.Items.AddRange(new object[] {
"Solid",
"Dash",
"Dot",
"DashDot",
"DashDotDot"});
- this.MLStyleComboBox.Location = new System.Drawing.Point(106, 81);
- this.MLStyleComboBox.Name = "MLStyleComboBox";
- this.MLStyleComboBox.Size = new System.Drawing.Size(100, 23);
- this.MLStyleComboBox.TabIndex = 35;
- this.MLStyleComboBox.DropDownClosed += new System.EventHandler(this.MLStyleComboBox_DropDownClosed);
+ this.marginLinesStyleComboBox.Location = new System.Drawing.Point(106, 81);
+ this.marginLinesStyleComboBox.Name = "marginLinesStyleComboBox";
+ this.marginLinesStyleComboBox.Size = new System.Drawing.Size(100, 23);
+ this.marginLinesStyleComboBox.TabIndex = 35;
+ this.marginLinesStyleComboBox.DropDownClosed += new System.EventHandler(this.MarginLinesStyleComboBox_DropDownClosed);
//
- // MLStyleLabel
+ // marginLinesStyleLabel
//
- this.MLStyleLabel.AutoSize = true;
- this.MLStyleLabel.Location = new System.Drawing.Point(10, 84);
- this.MLStyleLabel.Name = "MLStyleLabel";
- this.MLStyleLabel.Size = new System.Drawing.Size(33, 15);
- this.MLStyleLabel.TabIndex = 34;
- this.MLStyleLabel.Text = "Style";
+ this.marginLinesStyleLabel.AutoSize = true;
+ this.marginLinesStyleLabel.Location = new System.Drawing.Point(10, 84);
+ this.marginLinesStyleLabel.Name = "marginLinesStyleLabel";
+ this.marginLinesStyleLabel.Size = new System.Drawing.Size(32, 15);
+ this.marginLinesStyleLabel.TabIndex = 34;
+ this.marginLinesStyleLabel.Text = "Style";
//
- // MLSideComboBox
+ // marginLinesSideComboBox
//
- this.MLSideComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.MLSideComboBox.FormattingEnabled = true;
- this.MLSideComboBox.Items.AddRange(new object[] {
+ this.marginLinesSideComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.marginLinesSideComboBox.FormattingEnabled = true;
+ this.marginLinesSideComboBox.Items.AddRange(new object[] {
"None",
"Left",
"Right",
"Height"});
- this.MLSideComboBox.Location = new System.Drawing.Point(106, 110);
- this.MLSideComboBox.Name = "MLSideComboBox";
- this.MLSideComboBox.Size = new System.Drawing.Size(100, 23);
- this.MLSideComboBox.TabIndex = 33;
- this.MLSideComboBox.DropDownClosed += new System.EventHandler(this.MLSideComboBox_DropDownClosed);
+ this.marginLinesSideComboBox.Location = new System.Drawing.Point(106, 110);
+ this.marginLinesSideComboBox.Name = "marginLinesSideComboBox";
+ this.marginLinesSideComboBox.Size = new System.Drawing.Size(100, 23);
+ this.marginLinesSideComboBox.TabIndex = 33;
+ this.marginLinesSideComboBox.DropDownClosed += new System.EventHandler(this.MarginLinesSideComboBox_DropDownClosed);
//
- // MLColor
+ // marginLinesColor
//
- this.MLColor.BackColor = System.Drawing.SystemColors.Control;
- this.MLColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.MLColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.MLColor.Location = new System.Drawing.Point(106, 54);
- this.MLColor.Name = "MLColor";
- this.MLColor.Size = new System.Drawing.Size(100, 21);
- this.MLColor.TabIndex = 32;
- this.MLColor.Click += new System.EventHandler(this.MLColor_Click);
+ this.marginLinesColor.BackColor = System.Drawing.SystemColors.Control;
+ this.marginLinesColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.marginLinesColor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.marginLinesColor.Location = new System.Drawing.Point(106, 54);
+ this.marginLinesColor.Name = "marginLinesColor";
+ this.marginLinesColor.Size = new System.Drawing.Size(100, 21);
+ this.marginLinesColor.TabIndex = 32;
+ this.marginLinesColor.Click += new System.EventHandler(this.MarginLinesColor_Click);
//
- // MLSideLabel
+ // marginLinesSideLabel
//
- this.MLSideLabel.AutoSize = true;
- this.MLSideLabel.Location = new System.Drawing.Point(10, 113);
- this.MLSideLabel.Name = "MLSideLabel";
- this.MLSideLabel.Size = new System.Drawing.Size(32, 15);
- this.MLSideLabel.TabIndex = 31;
- this.MLSideLabel.Text = "Side";
+ this.marginLinesSideLabel.AutoSize = true;
+ this.marginLinesSideLabel.Location = new System.Drawing.Point(10, 113);
+ this.marginLinesSideLabel.Name = "marginLinesSideLabel";
+ this.marginLinesSideLabel.Size = new System.Drawing.Size(29, 15);
+ this.marginLinesSideLabel.TabIndex = 31;
+ this.marginLinesSideLabel.Text = "Side";
//
- // MLColorLabel
+ // marginLinesColorLabel
//
- this.MLColorLabel.Location = new System.Drawing.Point(10, 54);
- this.MLColorLabel.Name = "MLColorLabel";
- this.MLColorLabel.Size = new System.Drawing.Size(45, 21);
- this.MLColorLabel.TabIndex = 30;
- this.MLColorLabel.Text = "Color";
- this.MLColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.marginLinesColorLabel.Location = new System.Drawing.Point(10, 54);
+ this.marginLinesColorLabel.Name = "marginLinesColorLabel";
+ this.marginLinesColorLabel.Size = new System.Drawing.Size(45, 21);
+ this.marginLinesColorLabel.TabIndex = 30;
+ this.marginLinesColorLabel.Text = "Color";
+ this.marginLinesColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // MLVisibleComboBox
+ // marginLinesVisibleComboBox
//
- this.MLVisibleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.MLVisibleComboBox.FormattingEnabled = true;
- this.MLVisibleComboBox.Items.AddRange(new object[] {
+ this.marginLinesVisibleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.marginLinesVisibleComboBox.FormattingEnabled = true;
+ this.marginLinesVisibleComboBox.Items.AddRange(new object[] {
"True",
"False"});
- this.MLVisibleComboBox.Location = new System.Drawing.Point(106, 25);
- this.MLVisibleComboBox.Name = "MLVisibleComboBox";
- this.MLVisibleComboBox.Size = new System.Drawing.Size(100, 23);
- this.MLVisibleComboBox.TabIndex = 29;
- this.MLVisibleComboBox.DropDownClosed += new System.EventHandler(this.MLVisibleComboBox_DropDownClosed);
+ this.marginLinesVisibleComboBox.Location = new System.Drawing.Point(106, 25);
+ this.marginLinesVisibleComboBox.Name = "marginLinesVisibleComboBox";
+ this.marginLinesVisibleComboBox.Size = new System.Drawing.Size(100, 23);
+ this.marginLinesVisibleComboBox.TabIndex = 29;
+ this.marginLinesVisibleComboBox.DropDownClosed += new System.EventHandler(this.MarginLinesVisibleComboBox_DropDownClosed);
//
- // MLShowLabel
+ // marginLinesVisibleLabel
//
- this.MLShowLabel.AutoSize = true;
- this.MLShowLabel.Location = new System.Drawing.Point(10, 28);
- this.MLShowLabel.Name = "MLShowLabel";
- this.MLShowLabel.Size = new System.Drawing.Size(43, 15);
- this.MLShowLabel.TabIndex = 28;
- this.MLShowLabel.Text = "Visible";
+ this.marginLinesVisibleLabel.AutoSize = true;
+ this.marginLinesVisibleLabel.Location = new System.Drawing.Point(10, 28);
+ this.marginLinesVisibleLabel.Name = "marginLinesVisibleLabel";
+ this.marginLinesVisibleLabel.Size = new System.Drawing.Size(41, 15);
+ this.marginLinesVisibleLabel.TabIndex = 28;
+ this.marginLinesVisibleLabel.Text = "Visible";
//
- // GLGroupBox
+ // gridLinesGroupBox
//
- this.GLGroupBox.Controls.Add(this.GLShowComboBox);
- this.GLGroupBox.Controls.Add(this.GLStyleComboBox);
- this.GLGroupBox.Controls.Add(this.GLColor);
- this.GLGroupBox.Controls.Add(this.GLShowLabel);
- this.GLGroupBox.Controls.Add(this.GLStyleLabel);
- this.GLGroupBox.Controls.Add(this.GLColorLabel);
- this.GLGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
- this.GLGroupBox.Location = new System.Drawing.Point(3, 223);
- this.GLGroupBox.Name = "GLGroupBox";
- this.GLGroupBox.Size = new System.Drawing.Size(219, 110);
- this.GLGroupBox.TabIndex = 27;
- this.GLGroupBox.TabStop = false;
- this.GLGroupBox.Text = "Grid lines";
+ this.gridLinesGroupBox.Controls.Add(this.gridLinesVisibleComboBox);
+ this.gridLinesGroupBox.Controls.Add(this.gridLinesStyleComboBox);
+ this.gridLinesGroupBox.Controls.Add(this.gridLinesColor);
+ this.gridLinesGroupBox.Controls.Add(this.gridLinesVisibleLabel);
+ this.gridLinesGroupBox.Controls.Add(this.gridLinesStyleLabel);
+ this.gridLinesGroupBox.Controls.Add(this.gridLinesColorLabel);
+ this.gridLinesGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
+ this.gridLinesGroupBox.Location = new System.Drawing.Point(3, 223);
+ this.gridLinesGroupBox.Name = "gridLinesGroupBox";
+ this.gridLinesGroupBox.Size = new System.Drawing.Size(219, 110);
+ this.gridLinesGroupBox.TabIndex = 27;
+ this.gridLinesGroupBox.TabStop = false;
+ this.gridLinesGroupBox.Text = "Grid lines";
//
- // GLShowComboBox
+ // gridLinesVisibleComboBox
//
- this.GLShowComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.GLShowComboBox.FormattingEnabled = true;
- this.GLShowComboBox.Items.AddRange(new object[] {
+ this.gridLinesVisibleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.gridLinesVisibleComboBox.FormattingEnabled = true;
+ this.gridLinesVisibleComboBox.Items.AddRange(new object[] {
"True",
"False"});
- this.GLShowComboBox.Location = new System.Drawing.Point(106, 20);
- this.GLShowComboBox.Name = "GLShowComboBox";
- this.GLShowComboBox.Size = new System.Drawing.Size(100, 23);
- this.GLShowComboBox.TabIndex = 22;
- this.GLShowComboBox.Tag = "False";
- this.GLShowComboBox.DropDownClosed += new System.EventHandler(this.GLShowComboBox_DropDownClosed);
+ this.gridLinesVisibleComboBox.Location = new System.Drawing.Point(106, 20);
+ this.gridLinesVisibleComboBox.Name = "gridLinesVisibleComboBox";
+ this.gridLinesVisibleComboBox.Size = new System.Drawing.Size(100, 23);
+ this.gridLinesVisibleComboBox.TabIndex = 22;
+ this.gridLinesVisibleComboBox.Tag = "False";
+ this.gridLinesVisibleComboBox.DropDownClosed += new System.EventHandler(this.GridLinesVisibleComboBox_DropDownClosed);
//
- // GLStyleComboBox
+ // gridLinesStyleComboBox
//
- this.GLStyleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.GLStyleComboBox.FormattingEnabled = true;
- this.GLStyleComboBox.Items.AddRange(new object[] {
+ this.gridLinesStyleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.gridLinesStyleComboBox.FormattingEnabled = true;
+ this.gridLinesStyleComboBox.Items.AddRange(new object[] {
"Solid",
"Dash",
"Dot",
"DashDot",
"DashDotDot"});
- this.GLStyleComboBox.Location = new System.Drawing.Point(106, 76);
- this.GLStyleComboBox.Name = "GLStyleComboBox";
- this.GLStyleComboBox.Size = new System.Drawing.Size(100, 23);
- this.GLStyleComboBox.TabIndex = 26;
- this.GLStyleComboBox.DropDownClosed += new System.EventHandler(this.GLStyleComboBox_DropDownClosed);
+ this.gridLinesStyleComboBox.Location = new System.Drawing.Point(106, 76);
+ this.gridLinesStyleComboBox.Name = "gridLinesStyleComboBox";
+ this.gridLinesStyleComboBox.Size = new System.Drawing.Size(100, 23);
+ this.gridLinesStyleComboBox.TabIndex = 26;
+ this.gridLinesStyleComboBox.DropDownClosed += new System.EventHandler(this.GridLinesStyleComboBox_DropDownClosed);
//
- // GLColor
+ // gridLinesColor
//
- this.GLColor.BackColor = System.Drawing.SystemColors.Control;
- this.GLColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.GLColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.GLColor.Location = new System.Drawing.Point(106, 49);
- this.GLColor.Name = "GLColor";
- this.GLColor.Size = new System.Drawing.Size(100, 21);
- this.GLColor.TabIndex = 24;
- this.GLColor.Click += new System.EventHandler(this.GLColor_Click);
+ this.gridLinesColor.BackColor = System.Drawing.SystemColors.Control;
+ this.gridLinesColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.gridLinesColor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.gridLinesColor.Location = new System.Drawing.Point(106, 49);
+ this.gridLinesColor.Name = "gridLinesColor";
+ this.gridLinesColor.Size = new System.Drawing.Size(100, 21);
+ this.gridLinesColor.TabIndex = 24;
+ this.gridLinesColor.Click += new System.EventHandler(this.GridLinesColor_Click);
//
- // GLShowLabel
+ // gridLinesVisibleLabel
//
- this.GLShowLabel.AutoSize = true;
- this.GLShowLabel.Location = new System.Drawing.Point(10, 23);
- this.GLShowLabel.Name = "GLShowLabel";
- this.GLShowLabel.Size = new System.Drawing.Size(43, 15);
- this.GLShowLabel.TabIndex = 21;
- this.GLShowLabel.Text = "Visible";
+ this.gridLinesVisibleLabel.AutoSize = true;
+ this.gridLinesVisibleLabel.Location = new System.Drawing.Point(10, 23);
+ this.gridLinesVisibleLabel.Name = "gridLinesVisibleLabel";
+ this.gridLinesVisibleLabel.Size = new System.Drawing.Size(41, 15);
+ this.gridLinesVisibleLabel.TabIndex = 21;
+ this.gridLinesVisibleLabel.Text = "Visible";
//
- // GLStyleLabel
+ // gridLinesStyleLabel
//
- this.GLStyleLabel.AutoSize = true;
- this.GLStyleLabel.Location = new System.Drawing.Point(10, 79);
- this.GLStyleLabel.Name = "GLStyleLabel";
- this.GLStyleLabel.Size = new System.Drawing.Size(33, 15);
- this.GLStyleLabel.TabIndex = 25;
- this.GLStyleLabel.Text = "Style";
+ this.gridLinesStyleLabel.AutoSize = true;
+ this.gridLinesStyleLabel.Location = new System.Drawing.Point(10, 79);
+ this.gridLinesStyleLabel.Name = "gridLinesStyleLabel";
+ this.gridLinesStyleLabel.Size = new System.Drawing.Size(32, 15);
+ this.gridLinesStyleLabel.TabIndex = 25;
+ this.gridLinesStyleLabel.Text = "Style";
//
- // GLColorLabel
+ // gridLinesColorLabel
//
- this.GLColorLabel.Location = new System.Drawing.Point(10, 49);
- this.GLColorLabel.Name = "GLColorLabel";
- this.GLColorLabel.Size = new System.Drawing.Size(61, 21);
- this.GLColorLabel.TabIndex = 23;
- this.GLColorLabel.Text = "Color";
- this.GLColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.gridLinesColorLabel.Location = new System.Drawing.Point(10, 49);
+ this.gridLinesColorLabel.Name = "gridLinesColorLabel";
+ this.gridLinesColorLabel.Size = new System.Drawing.Size(61, 21);
+ this.gridLinesColorLabel.TabIndex = 23;
+ this.gridLinesColorLabel.Text = "Color";
+ this.gridLinesColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // BLGroupBox
+ // borderLinesGroupBox
//
- this.BLGroupBox.Controls.Add(this.BLShowСomboBox);
- this.BLGroupBox.Controls.Add(this.BLStyleComboBox);
- this.BLGroupBox.Controls.Add(this.BLColorLabel);
- this.BLGroupBox.Controls.Add(this.BLStyleLabel);
- this.BLGroupBox.Controls.Add(this.BLShowLabel);
- this.BLGroupBox.Controls.Add(this.BLColor);
- this.BLGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
- this.BLGroupBox.Location = new System.Drawing.Point(3, 113);
- this.BLGroupBox.Name = "BLGroupBox";
- this.BLGroupBox.Size = new System.Drawing.Size(219, 110);
- this.BLGroupBox.TabIndex = 27;
- this.BLGroupBox.TabStop = false;
- this.BLGroupBox.Text = "Border lines";
+ this.borderLinesGroupBox.Controls.Add(this.borderLinesVisibleСomboBox);
+ this.borderLinesGroupBox.Controls.Add(this.borderLinesStyleComboBox);
+ this.borderLinesGroupBox.Controls.Add(this.borderLinesColorLabel);
+ this.borderLinesGroupBox.Controls.Add(this.borderLinesStyleLabel);
+ this.borderLinesGroupBox.Controls.Add(this.borderLinesVisibleLabel);
+ this.borderLinesGroupBox.Controls.Add(this.borderLinesColor);
+ this.borderLinesGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
+ this.borderLinesGroupBox.Location = new System.Drawing.Point(3, 113);
+ this.borderLinesGroupBox.Name = "borderLinesGroupBox";
+ this.borderLinesGroupBox.Size = new System.Drawing.Size(219, 110);
+ this.borderLinesGroupBox.TabIndex = 27;
+ this.borderLinesGroupBox.TabStop = false;
+ this.borderLinesGroupBox.Text = "Border lines";
//
- // BLShowСomboBox
+ // borderLinesVisibleСomboBox
//
- this.BLShowСomboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.BLShowСomboBox.FormattingEnabled = true;
- this.BLShowСomboBox.Items.AddRange(new object[] {
+ this.borderLinesVisibleСomboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.borderLinesVisibleСomboBox.FormattingEnabled = true;
+ this.borderLinesVisibleСomboBox.Items.AddRange(new object[] {
"True",
"False"});
- this.BLShowСomboBox.Location = new System.Drawing.Point(106, 19);
- this.BLShowСomboBox.Name = "BLShowСomboBox";
- this.BLShowСomboBox.Size = new System.Drawing.Size(100, 23);
- this.BLShowСomboBox.TabIndex = 16;
- this.BLShowСomboBox.DropDownClosed += new System.EventHandler(this.BLShowСomboBox_DropDownClosed);
+ this.borderLinesVisibleСomboBox.Location = new System.Drawing.Point(106, 19);
+ this.borderLinesVisibleСomboBox.Name = "borderLinesVisibleСomboBox";
+ this.borderLinesVisibleСomboBox.Size = new System.Drawing.Size(100, 23);
+ this.borderLinesVisibleСomboBox.TabIndex = 16;
+ this.borderLinesVisibleСomboBox.DropDownClosed += new System.EventHandler(this.BorderLinesVisibleСomboBox_DropDownClosed);
//
- // BLStyleComboBox
+ // borderLinesStyleComboBox
//
- this.BLStyleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.BLStyleComboBox.FormattingEnabled = true;
- this.BLStyleComboBox.Items.AddRange(new object[] {
+ this.borderLinesStyleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.borderLinesStyleComboBox.FormattingEnabled = true;
+ this.borderLinesStyleComboBox.Items.AddRange(new object[] {
"Solid",
"Dash",
"Dot",
"DashDot",
"DashDotDot"});
- this.BLStyleComboBox.Location = new System.Drawing.Point(106, 75);
- this.BLStyleComboBox.Name = "BLStyleComboBox";
- this.BLStyleComboBox.Size = new System.Drawing.Size(100, 23);
- this.BLStyleComboBox.TabIndex = 20;
- this.BLStyleComboBox.DropDownClosed += new System.EventHandler(this.BLStyleComboBox_DropDownClosed);
+ this.borderLinesStyleComboBox.Location = new System.Drawing.Point(106, 75);
+ this.borderLinesStyleComboBox.Name = "borderLinesStyleComboBox";
+ this.borderLinesStyleComboBox.Size = new System.Drawing.Size(100, 23);
+ this.borderLinesStyleComboBox.TabIndex = 20;
+ this.borderLinesStyleComboBox.DropDownClosed += new System.EventHandler(this.BorderLinesStyleComboBox_DropDownClosed);
//
- // BLColorLabel
+ // borderLinesColorLabel
//
- this.BLColorLabel.Location = new System.Drawing.Point(10, 48);
- this.BLColorLabel.Name = "BLColorLabel";
- this.BLColorLabel.Size = new System.Drawing.Size(45, 21);
- this.BLColorLabel.TabIndex = 17;
- this.BLColorLabel.Text = "Color";
- this.BLColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.borderLinesColorLabel.Location = new System.Drawing.Point(10, 48);
+ this.borderLinesColorLabel.Name = "borderLinesColorLabel";
+ this.borderLinesColorLabel.Size = new System.Drawing.Size(45, 21);
+ this.borderLinesColorLabel.TabIndex = 17;
+ this.borderLinesColorLabel.Text = "Color";
+ this.borderLinesColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // BLStyleLabel
+ // borderLinesStyleLabel
//
- this.BLStyleLabel.AutoSize = true;
- this.BLStyleLabel.Location = new System.Drawing.Point(10, 78);
- this.BLStyleLabel.Name = "BLStyleLabel";
- this.BLStyleLabel.Size = new System.Drawing.Size(33, 15);
- this.BLStyleLabel.TabIndex = 19;
- this.BLStyleLabel.Text = "Style";
+ this.borderLinesStyleLabel.AutoSize = true;
+ this.borderLinesStyleLabel.Location = new System.Drawing.Point(10, 78);
+ this.borderLinesStyleLabel.Name = "borderLinesStyleLabel";
+ this.borderLinesStyleLabel.Size = new System.Drawing.Size(32, 15);
+ this.borderLinesStyleLabel.TabIndex = 19;
+ this.borderLinesStyleLabel.Text = "Style";
//
- // BLShowLabel
+ // borderLinesVisibleLabel
//
- this.BLShowLabel.AutoSize = true;
- this.BLShowLabel.Location = new System.Drawing.Point(10, 22);
- this.BLShowLabel.Name = "BLShowLabel";
- this.BLShowLabel.Size = new System.Drawing.Size(43, 15);
- this.BLShowLabel.TabIndex = 15;
- this.BLShowLabel.Text = "Visible";
+ this.borderLinesVisibleLabel.AutoSize = true;
+ this.borderLinesVisibleLabel.Location = new System.Drawing.Point(10, 22);
+ this.borderLinesVisibleLabel.Name = "borderLinesVisibleLabel";
+ this.borderLinesVisibleLabel.Size = new System.Drawing.Size(41, 15);
+ this.borderLinesVisibleLabel.TabIndex = 15;
+ this.borderLinesVisibleLabel.Text = "Visible";
//
- // BLColor
+ // borderLinesColor
//
- this.BLColor.BackColor = System.Drawing.SystemColors.Control;
- this.BLColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.BLColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.BLColor.Location = new System.Drawing.Point(106, 48);
- this.BLColor.Name = "BLColor";
- this.BLColor.Size = new System.Drawing.Size(100, 21);
- this.BLColor.TabIndex = 18;
- this.BLColor.Click += new System.EventHandler(this.BLColor_Click);
+ this.borderLinesColor.BackColor = System.Drawing.SystemColors.Control;
+ this.borderLinesColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.borderLinesColor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.borderLinesColor.Location = new System.Drawing.Point(106, 48);
+ this.borderLinesColor.Name = "borderLinesColor";
+ this.borderLinesColor.Size = new System.Drawing.Size(100, 21);
+ this.borderLinesColor.TabIndex = 18;
+ this.borderLinesColor.Click += new System.EventHandler(this.BorderLinesColor_Click);
//
- // LNGroupBox
+ // lineNumbersGroupBox
//
- this.LNGroupBox.Controls.Add(this.LNVisibleComboBox);
- this.LNGroupBox.Controls.Add(this.LNBackColor);
- this.LNGroupBox.Controls.Add(this.LNVisibleLabel);
- this.LNGroupBox.Controls.Add(this.LNFontColor);
- this.LNGroupBox.Controls.Add(this.LNFontColorLabel);
- this.LNGroupBox.Controls.Add(this.LNBackgroundColor);
- this.LNGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
- this.LNGroupBox.Location = new System.Drawing.Point(3, 3);
- this.LNGroupBox.Name = "LNGroupBox";
- this.LNGroupBox.Size = new System.Drawing.Size(219, 110);
- this.LNGroupBox.TabIndex = 27;
- this.LNGroupBox.TabStop = false;
- this.LNGroupBox.Text = "Line numbers";
+ this.lineNumbersGroupBox.Controls.Add(this.lineNumbersVisibleComboBox);
+ this.lineNumbersGroupBox.Controls.Add(this.lineNumbersBackColor);
+ this.lineNumbersGroupBox.Controls.Add(this.lineNumbersVisibleLabel);
+ this.lineNumbersGroupBox.Controls.Add(this.lineNumbersFontColor);
+ this.lineNumbersGroupBox.Controls.Add(this.lineNumbersFontColorLabel);
+ this.lineNumbersGroupBox.Controls.Add(this.lineNumbersBackColorLabel);
+ this.lineNumbersGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
+ this.lineNumbersGroupBox.Location = new System.Drawing.Point(3, 3);
+ this.lineNumbersGroupBox.Name = "lineNumbersGroupBox";
+ this.lineNumbersGroupBox.Size = new System.Drawing.Size(219, 110);
+ this.lineNumbersGroupBox.TabIndex = 27;
+ this.lineNumbersGroupBox.TabStop = false;
+ this.lineNumbersGroupBox.Text = "Line numbers";
//
- // LNVisibleComboBox
+ // lineNumbersVisibleComboBox
//
- this.LNVisibleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.LNVisibleComboBox.FormattingEnabled = true;
- this.LNVisibleComboBox.Items.AddRange(new object[] {
+ this.lineNumbersVisibleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.lineNumbersVisibleComboBox.FormattingEnabled = true;
+ this.lineNumbersVisibleComboBox.Items.AddRange(new object[] {
"True",
"False"});
- this.LNVisibleComboBox.Location = new System.Drawing.Point(106, 19);
- this.LNVisibleComboBox.Name = "LNVisibleComboBox";
- this.LNVisibleComboBox.Size = new System.Drawing.Size(100, 23);
- this.LNVisibleComboBox.TabIndex = 3;
- this.LNVisibleComboBox.DropDownClosed += new System.EventHandler(this.LNVisibleComboBox_DropDownClosed);
+ this.lineNumbersVisibleComboBox.Location = new System.Drawing.Point(106, 19);
+ this.lineNumbersVisibleComboBox.Name = "lineNumbersVisibleComboBox";
+ this.lineNumbersVisibleComboBox.Size = new System.Drawing.Size(100, 23);
+ this.lineNumbersVisibleComboBox.TabIndex = 3;
+ this.lineNumbersVisibleComboBox.DropDownClosed += new System.EventHandler(this.LineNumbersVisibleComboBox_DropDownClosed);
//
- // LNBackColor
+ // lineNumbersBackColor
//
- this.LNBackColor.BackColor = System.Drawing.SystemColors.Control;
- this.LNBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.LNBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.LNBackColor.Location = new System.Drawing.Point(106, 48);
- this.LNBackColor.Name = "LNBackColor";
- this.LNBackColor.Size = new System.Drawing.Size(100, 21);
- this.LNBackColor.TabIndex = 13;
- this.LNBackColor.Click += new System.EventHandler(this.LNBackColor_Click);
+ this.lineNumbersBackColor.BackColor = System.Drawing.SystemColors.Control;
+ this.lineNumbersBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.lineNumbersBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.lineNumbersBackColor.Location = new System.Drawing.Point(106, 48);
+ this.lineNumbersBackColor.Name = "lineNumbersBackColor";
+ this.lineNumbersBackColor.Size = new System.Drawing.Size(100, 21);
+ this.lineNumbersBackColor.TabIndex = 13;
+ this.lineNumbersBackColor.Click += new System.EventHandler(this.LineNumbersBackColor_Click);
//
- // LNVisibleLabel
+ // lineNumbersVisibleLabel
//
- this.LNVisibleLabel.AutoSize = true;
- this.LNVisibleLabel.Location = new System.Drawing.Point(10, 22);
- this.LNVisibleLabel.Name = "LNVisibleLabel";
- this.LNVisibleLabel.Size = new System.Drawing.Size(43, 15);
- this.LNVisibleLabel.TabIndex = 0;
- this.LNVisibleLabel.Text = "Visible";
+ this.lineNumbersVisibleLabel.AutoSize = true;
+ this.lineNumbersVisibleLabel.Location = new System.Drawing.Point(10, 22);
+ this.lineNumbersVisibleLabel.Name = "lineNumbersVisibleLabel";
+ this.lineNumbersVisibleLabel.Size = new System.Drawing.Size(41, 15);
+ this.lineNumbersVisibleLabel.TabIndex = 0;
+ this.lineNumbersVisibleLabel.Text = "Visible";
//
- // LNFontColor
+ // lineNumbersFontColor
//
- this.LNFontColor.BackColor = System.Drawing.SystemColors.Control;
- this.LNFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.LNFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.LNFontColor.Location = new System.Drawing.Point(106, 75);
- this.LNFontColor.Name = "LNFontColor";
- this.LNFontColor.Size = new System.Drawing.Size(100, 21);
- this.LNFontColor.TabIndex = 14;
- this.LNFontColor.Click += new System.EventHandler(this.LNFontColor_Click);
+ this.lineNumbersFontColor.BackColor = System.Drawing.SystemColors.Control;
+ this.lineNumbersFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.lineNumbersFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.lineNumbersFontColor.Location = new System.Drawing.Point(106, 75);
+ this.lineNumbersFontColor.Name = "lineNumbersFontColor";
+ this.lineNumbersFontColor.Size = new System.Drawing.Size(100, 21);
+ this.lineNumbersFontColor.TabIndex = 14;
+ this.lineNumbersFontColor.Click += new System.EventHandler(this.LineNumbersFontColor_Click);
//
- // LNFontColorLabel
+ // lineNumbersFontColorLabel
//
- this.LNFontColorLabel.Location = new System.Drawing.Point(10, 75);
- this.LNFontColorLabel.Name = "LNFontColorLabel";
- this.LNFontColorLabel.Size = new System.Drawing.Size(61, 21);
- this.LNFontColorLabel.TabIndex = 2;
- this.LNFontColorLabel.Text = "Font color";
- this.LNFontColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.lineNumbersFontColorLabel.Location = new System.Drawing.Point(10, 75);
+ this.lineNumbersFontColorLabel.Name = "lineNumbersFontColorLabel";
+ this.lineNumbersFontColorLabel.Size = new System.Drawing.Size(61, 21);
+ this.lineNumbersFontColorLabel.TabIndex = 2;
+ this.lineNumbersFontColorLabel.Text = "Font color";
+ this.lineNumbersFontColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // LNBackgroundColor
+ // lineNumbersBackColorLabel
//
- this.LNBackgroundColor.BackColor = System.Drawing.SystemColors.Window;
- this.LNBackgroundColor.Location = new System.Drawing.Point(10, 48);
- this.LNBackgroundColor.Name = "LNBackgroundColor";
- this.LNBackgroundColor.Size = new System.Drawing.Size(69, 21);
- this.LNBackgroundColor.TabIndex = 1;
- this.LNBackgroundColor.Text = "Back Color";
- this.LNBackgroundColor.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.lineNumbersBackColorLabel.BackColor = System.Drawing.SystemColors.Window;
+ this.lineNumbersBackColorLabel.Location = new System.Drawing.Point(10, 48);
+ this.lineNumbersBackColorLabel.Name = "lineNumbersBackColorLabel";
+ this.lineNumbersBackColorLabel.Size = new System.Drawing.Size(69, 21);
+ this.lineNumbersBackColorLabel.TabIndex = 1;
+ this.lineNumbersBackColorLabel.Text = "Back Color";
+ this.lineNumbersBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// statusPanelTabPage
//
this.statusPanelTabPage.BackColor = System.Drawing.SystemColors.Window;
this.statusPanelTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.statusPanelTabPage.Controls.Add(this.statusPanelVisible);
- this.statusPanelTabPage.Controls.Add(this.statusBackColor);
- this.statusPanelTabPage.Controls.Add(this.statusFontColor);
- this.statusPanelTabPage.Controls.Add(this.statusFontColorLabel);
- this.statusPanelTabPage.Controls.Add(this.statusBackColorLabel);
+ this.statusPanelTabPage.Controls.Add(this.statusPanelVisibleCheckBox);
+ this.statusPanelTabPage.Controls.Add(this.statusPanelBackColor);
+ this.statusPanelTabPage.Controls.Add(this.statusPanelFontColor);
+ this.statusPanelTabPage.Controls.Add(this.statusPanelFontColorLabel);
+ this.statusPanelTabPage.Controls.Add(this.statusPanelBackColorLabel);
this.statusPanelTabPage.Location = new System.Drawing.Point(4, 44);
this.statusPanelTabPage.Name = "statusPanelTabPage";
this.statusPanelTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.statusPanelTabPage.Size = new System.Drawing.Size(244, 253);
+ this.statusPanelTabPage.Size = new System.Drawing.Size(244, 237);
this.statusPanelTabPage.TabIndex = 5;
this.statusPanelTabPage.Text = "stat";
//
- // statusPanelVisible
+ // statusPanelVisibleCheckBox
//
- this.statusPanelVisible.AutoSize = true;
- this.statusPanelVisible.Location = new System.Drawing.Point(9, 66);
- this.statusPanelVisible.Name = "statusPanelVisible";
- this.statusPanelVisible.Size = new System.Drawing.Size(62, 19);
- this.statusPanelVisible.TabIndex = 2;
- this.statusPanelVisible.Text = "Visible";
- this.statusPanelVisible.UseVisualStyleBackColor = true;
- this.statusPanelVisible.Click += new System.EventHandler(this.StatusPanelVisible_Click);
+ this.statusPanelVisibleCheckBox.AutoSize = true;
+ this.statusPanelVisibleCheckBox.Location = new System.Drawing.Point(6, 55);
+ this.statusPanelVisibleCheckBox.Name = "statusPanelVisibleCheckBox";
+ this.statusPanelVisibleCheckBox.Size = new System.Drawing.Size(60, 19);
+ this.statusPanelVisibleCheckBox.TabIndex = 2;
+ this.statusPanelVisibleCheckBox.Text = "Visible";
+ this.statusPanelVisibleCheckBox.UseVisualStyleBackColor = true;
+ this.statusPanelVisibleCheckBox.Click += new System.EventHandler(this.StatusPanelVisibleCheckBox_Click);
//
- // statusBackColor
+ // statusPanelBackColor
//
- this.statusBackColor.BackColor = System.Drawing.SystemColors.Control;
- this.statusBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.statusBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.statusBackColor.Location = new System.Drawing.Point(132, 4);
- this.statusBackColor.Name = "statusBackColor";
- this.statusBackColor.Size = new System.Drawing.Size(100, 21);
- this.statusBackColor.TabIndex = 3;
- this.statusBackColor.Click += new System.EventHandler(this.StatusBackColor_Click);
+ this.statusPanelBackColor.BackColor = System.Drawing.SystemColors.Control;
+ this.statusPanelBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.statusPanelBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.statusPanelBackColor.Location = new System.Drawing.Point(132, 4);
+ this.statusPanelBackColor.Name = "statusPanelBackColor";
+ this.statusPanelBackColor.Size = new System.Drawing.Size(100, 21);
+ this.statusPanelBackColor.TabIndex = 3;
+ this.statusPanelBackColor.Click += new System.EventHandler(this.StatusPanelBackColor_Click);
//
- // statusFontColor
+ // statusPanelFontColor
//
- this.statusFontColor.BackColor = System.Drawing.SystemColors.Control;
- this.statusFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.statusFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.statusFontColor.Location = new System.Drawing.Point(132, 31);
- this.statusFontColor.Name = "statusFontColor";
- this.statusFontColor.Size = new System.Drawing.Size(100, 21);
- this.statusFontColor.TabIndex = 3;
- this.statusFontColor.Click += new System.EventHandler(this.StatusFontColor_Click);
+ this.statusPanelFontColor.BackColor = System.Drawing.SystemColors.Control;
+ this.statusPanelFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.statusPanelFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.statusPanelFontColor.Location = new System.Drawing.Point(132, 31);
+ this.statusPanelFontColor.Name = "statusPanelFontColor";
+ this.statusPanelFontColor.Size = new System.Drawing.Size(100, 21);
+ this.statusPanelFontColor.TabIndex = 3;
+ this.statusPanelFontColor.Click += new System.EventHandler(this.StatusPanelFontColor_Click);
//
- // statusFontColorLabel
+ // statusPanelFontColorLabel
//
- this.statusFontColorLabel.Location = new System.Drawing.Point(6, 31);
- this.statusFontColorLabel.Name = "statusFontColorLabel";
- this.statusFontColorLabel.Size = new System.Drawing.Size(96, 21);
- this.statusFontColorLabel.TabIndex = 1;
- this.statusFontColorLabel.Text = "Font color";
- this.statusFontColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.statusPanelFontColorLabel.Location = new System.Drawing.Point(6, 31);
+ this.statusPanelFontColorLabel.Name = "statusPanelFontColorLabel";
+ this.statusPanelFontColorLabel.Size = new System.Drawing.Size(96, 21);
+ this.statusPanelFontColorLabel.TabIndex = 1;
+ this.statusPanelFontColorLabel.Text = "Font color";
+ this.statusPanelFontColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // statusBackColorLabel
+ // statusPanelBackColorLabel
//
- this.statusBackColorLabel.Location = new System.Drawing.Point(6, 4);
- this.statusBackColorLabel.Name = "statusBackColorLabel";
- this.statusBackColorLabel.Size = new System.Drawing.Size(120, 21);
- this.statusBackColorLabel.TabIndex = 0;
- this.statusBackColorLabel.Text = "Background color";
- this.statusBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.statusPanelBackColorLabel.Location = new System.Drawing.Point(6, 4);
+ this.statusPanelBackColorLabel.Name = "statusPanelBackColorLabel";
+ this.statusPanelBackColorLabel.Size = new System.Drawing.Size(120, 21);
+ this.statusPanelBackColorLabel.TabIndex = 0;
+ this.statusPanelBackColorLabel.Text = "Background color";
+ this.statusPanelBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// toolbarTabPage
//
this.toolbarTabPage.BackColor = System.Drawing.SystemColors.Window;
this.toolbarTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.toolbarTabPage.Controls.Add(this.toolbarOldIcons);
- this.toolbarTabPage.Controls.Add(this.toolbarBorder);
+ this.toolbarTabPage.Controls.Add(this.toolbarOldIconsCheckBox);
+ this.toolbarTabPage.Controls.Add(this.toolbarBorderCheckBox);
this.toolbarTabPage.Controls.Add(this.toolbarBackColor);
this.toolbarTabPage.Controls.Add(this.toolbarBackColorLabel);
- this.toolbarTabPage.Controls.Add(this.toolbarVisible);
+ this.toolbarTabPage.Controls.Add(this.toolbarVisibleCheckBox);
this.toolbarTabPage.Location = new System.Drawing.Point(4, 44);
this.toolbarTabPage.Name = "toolbarTabPage";
this.toolbarTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.toolbarTabPage.Size = new System.Drawing.Size(244, 253);
+ this.toolbarTabPage.Size = new System.Drawing.Size(244, 237);
this.toolbarTabPage.TabIndex = 6;
this.toolbarTabPage.Text = "tb";
//
- // toolbarOldIcons
+ // toolbarOldIconsCheckBox
//
- this.toolbarOldIcons.AutoSize = true;
- this.toolbarOldIcons.Location = new System.Drawing.Point(9, 91);
- this.toolbarOldIcons.Name = "toolbarOldIcons";
- this.toolbarOldIcons.Size = new System.Drawing.Size(77, 19);
- this.toolbarOldIcons.TabIndex = 13;
- this.toolbarOldIcons.Text = "Old icons";
- this.toolbarOldIcons.UseVisualStyleBackColor = true;
- this.toolbarOldIcons.Click += new System.EventHandler(this.ToolbarOldIcons_Click);
+ this.toolbarOldIconsCheckBox.AutoSize = true;
+ this.toolbarOldIconsCheckBox.Location = new System.Drawing.Point(9, 91);
+ this.toolbarOldIconsCheckBox.Name = "toolbarOldIconsCheckBox";
+ this.toolbarOldIconsCheckBox.Size = new System.Drawing.Size(76, 19);
+ this.toolbarOldIconsCheckBox.TabIndex = 13;
+ this.toolbarOldIconsCheckBox.Text = "Old icons";
+ this.toolbarOldIconsCheckBox.UseVisualStyleBackColor = true;
+ this.toolbarOldIconsCheckBox.Click += new System.EventHandler(this.ToolbarOldIconsCheckBox_Click);
//
- // toolbarBorder
+ // toolbarBorderCheckBox
//
- this.toolbarBorder.AutoSize = true;
- this.toolbarBorder.Location = new System.Drawing.Point(9, 41);
- this.toolbarBorder.Name = "toolbarBorder";
- this.toolbarBorder.Size = new System.Drawing.Size(63, 19);
- this.toolbarBorder.TabIndex = 12;
- this.toolbarBorder.Text = "Border";
- this.toolbarBorder.UseVisualStyleBackColor = true;
- this.toolbarBorder.Click += new System.EventHandler(this.ToolbarBorder_Click);
+ this.toolbarBorderCheckBox.AutoSize = true;
+ this.toolbarBorderCheckBox.Location = new System.Drawing.Point(9, 41);
+ this.toolbarBorderCheckBox.Name = "toolbarBorderCheckBox";
+ this.toolbarBorderCheckBox.Size = new System.Drawing.Size(61, 19);
+ this.toolbarBorderCheckBox.TabIndex = 12;
+ this.toolbarBorderCheckBox.Text = "Border";
+ this.toolbarBorderCheckBox.UseVisualStyleBackColor = true;
+ this.toolbarBorderCheckBox.Click += new System.EventHandler(this.ToolbarBorderCheckBox_Click);
//
// toolbarBackColor
//
@@ -1000,16 +1000,16 @@ private void InitializeComponent()
this.toolbarBackColorLabel.Text = "Background color";
this.toolbarBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // toolbarVisible
+ // toolbarVisibleCheckBox
//
- this.toolbarVisible.AutoSize = true;
- this.toolbarVisible.Location = new System.Drawing.Point(9, 66);
- this.toolbarVisible.Name = "toolbarVisible";
- this.toolbarVisible.Size = new System.Drawing.Size(62, 19);
- this.toolbarVisible.TabIndex = 2;
- this.toolbarVisible.Text = "Visible";
- this.toolbarVisible.UseVisualStyleBackColor = true;
- this.toolbarVisible.Click += new System.EventHandler(this.ToolbarVisible_Click);
+ this.toolbarVisibleCheckBox.AutoSize = true;
+ this.toolbarVisibleCheckBox.Location = new System.Drawing.Point(9, 66);
+ this.toolbarVisibleCheckBox.Name = "toolbarVisibleCheckBox";
+ this.toolbarVisibleCheckBox.Size = new System.Drawing.Size(60, 19);
+ this.toolbarVisibleCheckBox.TabIndex = 2;
+ this.toolbarVisibleCheckBox.Text = "Visible";
+ this.toolbarVisibleCheckBox.UseVisualStyleBackColor = true;
+ this.toolbarVisibleCheckBox.Click += new System.EventHandler(this.ToolbarVisibleCheckBox_Click);
//
// searchPanelTabPage
//
@@ -1022,7 +1022,7 @@ private void InitializeComponent()
this.searchPanelTabPage.Location = new System.Drawing.Point(4, 44);
this.searchPanelTabPage.Name = "searchPanelTabPage";
this.searchPanelTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.searchPanelTabPage.Size = new System.Drawing.Size(244, 253);
+ this.searchPanelTabPage.Size = new System.Drawing.Size(244, 237);
this.searchPanelTabPage.TabIndex = 7;
this.searchPanelTabPage.Text = "srch";
//
@@ -1066,12 +1066,12 @@ private void InitializeComponent()
this.searchBackColorLabel.Text = "Background color";
this.searchBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // lstSettingsNav
+ // settingsNavigation
//
- this.lstSettingsNav.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.lstSettingsNav.FormattingEnabled = true;
- this.lstSettingsNav.ItemHeight = 16;
- this.lstSettingsNav.Items.AddRange(new object[] {
+ this.settingsNavigation.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.settingsNavigation.FormattingEnabled = true;
+ this.settingsNavigation.ItemHeight = 17;
+ this.settingsNavigation.Items.AddRange(new object[] {
"Editor",
"Line Numbers",
"Status Panel",
@@ -1080,11 +1080,11 @@ private void InitializeComponent()
"Search Panel",
"Integration",
"Encryption"});
- this.lstSettingsNav.Location = new System.Drawing.Point(3, 3);
- this.lstSettingsNav.Name = "lstSettingsNav";
- this.lstSettingsNav.Size = new System.Drawing.Size(102, 292);
- this.lstSettingsNav.TabIndex = 6;
- this.lstSettingsNav.Click += new System.EventHandler(this.LstSettingsNav_Click);
+ this.settingsNavigation.Location = new System.Drawing.Point(3, 3);
+ this.settingsNavigation.Name = "settingsNavigation";
+ this.settingsNavigation.Size = new System.Drawing.Size(102, 276);
+ this.settingsNavigation.TabIndex = 6;
+ this.settingsNavigation.Click += new System.EventHandler(this.SettingsNavigation_Click);
//
// fontDialog
//
@@ -1104,9 +1104,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(356, 299);
+ this.ClientSize = new System.Drawing.Size(356, 283);
this.Controls.Add(this.settingsTabControl);
- this.Controls.Add(this.lstSettingsNav);
+ this.Controls.Add(this.settingsNavigation);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
@@ -1127,14 +1127,14 @@ private void InitializeComponent()
this.encryptionTabPage.ResumeLayout(false);
this.encryptionTabPage.PerformLayout();
this.lineNumbersTabPage.ResumeLayout(false);
- this.MLGroupBox.ResumeLayout(false);
- this.MLGroupBox.PerformLayout();
- this.GLGroupBox.ResumeLayout(false);
- this.GLGroupBox.PerformLayout();
- this.BLGroupBox.ResumeLayout(false);
- this.BLGroupBox.PerformLayout();
- this.LNGroupBox.ResumeLayout(false);
- this.LNGroupBox.PerformLayout();
+ this.marginLinesGroupBox.ResumeLayout(false);
+ this.marginLinesGroupBox.PerformLayout();
+ this.gridLinesGroupBox.ResumeLayout(false);
+ this.gridLinesGroupBox.PerformLayout();
+ this.borderLinesGroupBox.ResumeLayout(false);
+ this.borderLinesGroupBox.PerformLayout();
+ this.lineNumbersGroupBox.ResumeLayout(false);
+ this.lineNumbersGroupBox.PerformLayout();
this.statusPanelTabPage.ResumeLayout(false);
this.statusPanelTabPage.PerformLayout();
this.toolbarTabPage.ResumeLayout(false);
@@ -1146,87 +1146,87 @@ private void InitializeComponent()
#endregion
- private System.Windows.Forms.Label lblEditorFontColor;
+ private System.Windows.Forms.Label editorFontColorLabel;
private System.Windows.Forms.TabControl settingsTabControl;
private System.Windows.Forms.TabPage editorTabPage;
private System.Windows.Forms.TabPage encryptionTabPage;
private System.Windows.Forms.TabPage applicationTabPage;
- private System.Windows.Forms.CheckBox chkAssociate;
- private System.Windows.Forms.CheckBox chkUpdates;
- private System.Windows.Forms.Panel pnlEditorFontColor;
- private System.Windows.Forms.Panel pnlEditorBackColor;
- private System.Windows.Forms.Label lblEditorBackColor;
+ private System.Windows.Forms.CheckBox associateCheckBox;
+ private System.Windows.Forms.CheckBox autoCheckUpdatesCheckBox;
+ private System.Windows.Forms.Panel editorFontColor;
+ private System.Windows.Forms.Panel editorBackColor;
+ private System.Windows.Forms.Label editorBackColorLabel;
private System.Windows.Forms.ColorDialog colorDialog;
- private System.Windows.Forms.ComboBox cboKeySize;
- private System.Windows.Forms.Label lblKeySize;
- private System.Windows.Forms.Label lblHash;
- private System.Windows.Forms.ComboBox cboHash;
- private System.Windows.Forms.TextBox txtPwdIterations;
- private System.Windows.Forms.Label lblPwdIterations;
- private System.Windows.Forms.CheckBox toolbarVisible;
- private System.Windows.Forms.CheckBox chkAutoLock;
- private System.Windows.Forms.CheckBox chkSendTo;
- private System.Windows.Forms.CheckBox chkIntegrate;
- private System.Windows.Forms.CheckBox chkMenuIcons;
+ private System.Windows.Forms.ComboBox keySizeComboBox;
+ private System.Windows.Forms.Label keySizeLabel;
+ private System.Windows.Forms.Label hashAlgorithmLabel;
+ private System.Windows.Forms.ComboBox hashAlgorithmComboBox;
+ private System.Windows.Forms.TextBox passwordIterationsTextBox;
+ private System.Windows.Forms.Label passwordIterationsLabel;
+ private System.Windows.Forms.CheckBox toolbarVisibleCheckBox;
+ private System.Windows.Forms.CheckBox autoLockOnMinimizeCheckBox;
+ private System.Windows.Forms.CheckBox sendToCheckBox;
+ private System.Windows.Forms.CheckBox integrateCheckBox;
+ private System.Windows.Forms.CheckBox menuIconsCheckBox;
private System.Windows.Forms.TabPage integrationTabPage;
- private System.Windows.Forms.Label LNFontColorLabel;
- private System.Windows.Forms.Label LNBackgroundColor;
- private System.Windows.Forms.Label LNVisibleLabel;
- private System.Windows.Forms.ComboBox LNVisibleComboBox;
- private System.Windows.Forms.Panel LNFontColor;
- private System.Windows.Forms.Panel LNBackColor;
- private System.Windows.Forms.ComboBox BLStyleComboBox;
- private System.Windows.Forms.Label BLStyleLabel;
- private System.Windows.Forms.Panel BLColor;
- private System.Windows.Forms.Label BLColorLabel;
- private System.Windows.Forms.ComboBox BLShowСomboBox;
- private System.Windows.Forms.Label BLShowLabel;
- private System.Windows.Forms.ComboBox GLStyleComboBox;
- private System.Windows.Forms.Label GLStyleLabel;
- private System.Windows.Forms.Panel GLColor;
- private System.Windows.Forms.Label GLColorLabel;
- private System.Windows.Forms.ComboBox GLShowComboBox;
- private System.Windows.Forms.Label GLShowLabel;
- private System.Windows.Forms.ComboBox cbxInsKey;
- private System.Windows.Forms.Label lblInsKey;
- private System.Windows.Forms.TextBox txtPaddingLeft;
- private System.Windows.Forms.Label lblPaddingLeft;
- private System.Windows.Forms.ListBox lstSettingsNav;
+ private System.Windows.Forms.Label lineNumbersFontColorLabel;
+ private System.Windows.Forms.Label lineNumbersBackColorLabel;
+ private System.Windows.Forms.Label lineNumbersVisibleLabel;
+ private System.Windows.Forms.ComboBox lineNumbersVisibleComboBox;
+ private System.Windows.Forms.Panel lineNumbersFontColor;
+ private System.Windows.Forms.Panel lineNumbersBackColor;
+ private System.Windows.Forms.ComboBox borderLinesStyleComboBox;
+ private System.Windows.Forms.Label borderLinesStyleLabel;
+ private System.Windows.Forms.Panel borderLinesColor;
+ private System.Windows.Forms.Label borderLinesColorLabel;
+ private System.Windows.Forms.ComboBox borderLinesVisibleСomboBox;
+ private System.Windows.Forms.Label borderLinesVisibleLabel;
+ private System.Windows.Forms.ComboBox gridLinesStyleComboBox;
+ private System.Windows.Forms.Label gridLinesStyleLabel;
+ private System.Windows.Forms.Panel gridLinesColor;
+ private System.Windows.Forms.Label gridLinesColorLabel;
+ private System.Windows.Forms.ComboBox gridLinesVisibleComboBox;
+ private System.Windows.Forms.Label gridLinesVisibleLabel;
+ private System.Windows.Forms.ComboBox editorInsertKeyComboBox;
+ private System.Windows.Forms.Label editorInsertKeyLabel;
+ private System.Windows.Forms.TextBox editorPaddingLeftTextBox;
+ private System.Windows.Forms.Label editorPaddingLeftLabel;
+ private System.Windows.Forms.ListBox settingsNavigation;
private System.Windows.Forms.TabPage lineNumbersTabPage;
- private System.Windows.Forms.Button btnFont;
+ private System.Windows.Forms.Button editorFontButton;
private System.Windows.Forms.FontDialog fontDialog;
private System.Windows.Forms.TabPage statusPanelTabPage;
private System.Windows.Forms.TabPage toolbarTabPage;
private System.Windows.Forms.TabPage searchPanelTabPage;
private System.Windows.Forms.Label searchFontColorLabel;
private System.Windows.Forms.Label searchBackColorLabel;
- private System.Windows.Forms.CheckBox statusPanelVisible;
- private System.Windows.Forms.Label statusFontColorLabel;
- private System.Windows.Forms.Label statusBackColorLabel;
+ private System.Windows.Forms.CheckBox statusPanelVisibleCheckBox;
+ private System.Windows.Forms.Label statusPanelFontColorLabel;
+ private System.Windows.Forms.Label statusPanelBackColorLabel;
private System.Windows.Forms.Panel searchBackColor;
- private System.Windows.Forms.Panel statusBackColor;
- private System.Windows.Forms.Panel statusFontColor;
+ private System.Windows.Forms.Panel statusPanelBackColor;
+ private System.Windows.Forms.Panel statusPanelFontColor;
private System.Windows.Forms.Panel searchFontColor;
private System.Windows.Forms.Panel toolbarBackColor;
private System.Windows.Forms.Label toolbarBackColorLabel;
- private System.Windows.Forms.CheckBox toolbarBorder;
- private System.Windows.Forms.ComboBox cbxOpenLinks;
- private System.Windows.Forms.Label lblOpenLinks;
- private System.Windows.Forms.CheckBox chkMainMenu;
- private System.Windows.Forms.CheckBox toolbarOldIcons;
- private System.Windows.Forms.Label MLShowLabel;
- private System.Windows.Forms.GroupBox MLGroupBox;
- private System.Windows.Forms.ComboBox MLVisibleComboBox;
- private System.Windows.Forms.Label MLColorLabel;
- private System.Windows.Forms.ComboBox MLSideComboBox;
- private System.Windows.Forms.Panel MLColor;
- private System.Windows.Forms.Label MLSideLabel;
- private System.Windows.Forms.ComboBox MLStyleComboBox;
- private System.Windows.Forms.Label MLStyleLabel;
- private System.Windows.Forms.GroupBox LNGroupBox;
- private System.Windows.Forms.GroupBox GLGroupBox;
- private System.Windows.Forms.GroupBox BLGroupBox;
- private System.Windows.Forms.CheckBox chkCloseToTray;
- private System.Windows.Forms.CheckBox chkMinimizeToTray;
+ private System.Windows.Forms.CheckBox toolbarBorderCheckBox;
+ private System.Windows.Forms.ComboBox editorOpenLinksWithComboBox;
+ private System.Windows.Forms.Label editorOpenLinksWithLabel;
+ private System.Windows.Forms.CheckBox mainMenuCheckBox;
+ private System.Windows.Forms.CheckBox toolbarOldIconsCheckBox;
+ private System.Windows.Forms.Label marginLinesVisibleLabel;
+ private System.Windows.Forms.GroupBox marginLinesGroupBox;
+ private System.Windows.Forms.ComboBox marginLinesVisibleComboBox;
+ private System.Windows.Forms.Label marginLinesColorLabel;
+ private System.Windows.Forms.ComboBox marginLinesSideComboBox;
+ private System.Windows.Forms.Panel marginLinesColor;
+ private System.Windows.Forms.Label marginLinesSideLabel;
+ private System.Windows.Forms.ComboBox marginLinesStyleComboBox;
+ private System.Windows.Forms.Label marginLinesStyleLabel;
+ private System.Windows.Forms.GroupBox lineNumbersGroupBox;
+ private System.Windows.Forms.GroupBox gridLinesGroupBox;
+ private System.Windows.Forms.GroupBox borderLinesGroupBox;
+ private System.Windows.Forms.CheckBox closeToTrayCheckBox;
+ private System.Windows.Forms.CheckBox minimizeToTrayCheckBox;
}
}
\ No newline at end of file
diff --git a/Crypto Notepad/SettingsForm.cs b/Crypto Notepad/SettingsForm.cs
index 358e678..48166e6 100644
--- a/Crypto Notepad/SettingsForm.cs
+++ b/Crypto Notepad/SettingsForm.cs
@@ -22,54 +22,54 @@ public SettingsForm()
/*Methods*/
private void LoadSettings()
{
- pnlEditorFontColor.BackColor = settings.editroForeColor;
- pnlEditorBackColor.BackColor = settings.editorBackColor;
- cbxInsKey.Text = settings.insKey;
- txtPaddingLeft.Text = settings.editorPaddingLeft;
- cbxOpenLinks.Text = settings.openLinks;
+ editorFontColor.BackColor = settings.editroForeColor;
+ editorBackColor.BackColor = settings.editorBackColor;
+ editorInsertKeyComboBox.Text = settings.insertKey;
+ editorPaddingLeftTextBox.Text = settings.editorPaddingLeft;
+ editorOpenLinksWithComboBox.Text = settings.openLinks;
fontDialog.Font = settings.editorFont;
- chkAutoLock.Checked = settings.autoLock;
- chkUpdates.Checked = settings.autoCheckUpdate;
- chkMainMenu.Checked = settings.mainMenuVisible;
- chkMenuIcons.Checked = settings.menuIcons;
- chkMinimizeToTray.Checked = settings.minimizeToTray;
- chkCloseToTray.Checked = settings.closeToTray;
+ autoLockOnMinimizeCheckBox.Checked = settings.autoLock;
+ autoCheckUpdatesCheckBox.Checked = settings.autoCheckUpdate;
+ mainMenuCheckBox.Checked = settings.mainMenuVisible;
+ menuIconsCheckBox.Checked = settings.menuIcons;
+ minimizeToTrayCheckBox.Checked = settings.minimizeToTray;
+ closeToTrayCheckBox.Checked = settings.closeToTray;
- chkIntegrate.Checked = settings.explorerIntegrate;
- chkAssociate.Checked = settings.explorerAssociate;
- chkSendTo.Checked = settings.explorerSendTo;
+ integrateCheckBox.Checked = settings.explorerIntegrate;
+ associateCheckBox.Checked = settings.explorerAssociate;
+ sendToCheckBox.Checked = settings.explorerSendTo;
- cboHash.Text = settings.HashAlgorithm;
- cboKeySize.Text = settings.KeySize;
- txtPwdIterations.Text = settings.PasswordIterations;
+ hashAlgorithmComboBox.Text = settings.HashAlgorithm;
+ keySizeComboBox.Text = settings.KeySize;
+ passwordIterationsTextBox.Text = settings.PasswordIterations;
searchBackColor.BackColor = settings.searchPanelBackColor;
searchFontColor.BackColor = settings.searchPanelForeColor;
toolbarBackColor.BackColor = settings.toolbarBackColor;
- toolbarBorder.Checked = settings.toolbarBorder;
- toolbarVisible.Checked = settings.toolbarVisible;
- toolbarOldIcons.Checked = settings.oldToolbarIcons;
+ toolbarBorderCheckBox.Checked = settings.toolbarBorder;
+ toolbarVisibleCheckBox.Checked = settings.toolbarVisible;
+ toolbarOldIconsCheckBox.Checked = settings.oldToolbarIcons;
- statusBackColor.BackColor = settings.statusPanelBackColor;
- statusFontColor.BackColor = settings.statusPanelFontColor;
- statusPanelVisible.Checked = settings.statusPanelVisible;
+ statusPanelBackColor.BackColor = settings.statusPanelBackColor;
+ statusPanelFontColor.BackColor = settings.statusPanelFontColor;
+ statusPanelVisibleCheckBox.Checked = settings.statusPanelVisible;
- LNVisibleComboBox.Text = settings.lnVisible;
- LNBackColor.BackColor = settings.lnBackColor;
- LNFontColor.BackColor = settings.lnForeColor;
- BLShowСomboBox.Text = settings.blShow;
- BLColor.BackColor = settings.blColor;
- BLStyleComboBox.Text = settings.blStyle;
- GLShowComboBox.Text = settings.glShow;
- GLColor.BackColor = settings.glColor;
- GLStyleComboBox.Text = settings.glStyle;
+ lineNumbersVisibleComboBox.Text = settings.lineNumbersVisible;
+ lineNumbersBackColor.BackColor = settings.lineNumbersBackColor;
+ lineNumbersFontColor.BackColor = settings.lineNumbersForeColor;
+ borderLinesVisibleСomboBox.Text = settings.borderLinesVisible;
+ borderLinesColor.BackColor = settings.borderLinesColor;
+ borderLinesStyleComboBox.Text = settings.borderLinesStyle;
+ gridLinesVisibleComboBox.Text = settings.gridLinesVisible;
+ gridLinesColor.BackColor = settings.gridLinesColor;
+ gridLinesStyleComboBox.Text = settings.gridLinesStyle;
- MLVisibleComboBox.Text = settings.mlVisible;
- MLColor.BackColor = settings.mlColor;
- MLStyleComboBox.Text = settings.mlStyle;
- MLSideComboBox.Text = settings.mlSide;
+ marginLinesVisibleComboBox.Text = settings.marginLinesVisible;
+ marginLinesColor.BackColor = settings.marginLinesColor;
+ marginLinesStyleComboBox.Text = settings.marginLinesStyle;
+ marginLinesSideComboBox.Text = settings.marginLinesSide;
}
private static void AssociateExtension(string applicationExecutablePath, string extension)
@@ -166,14 +166,14 @@ private void SettingsForm_Load(object sender, EventArgs e)
settingsTabControl.Appearance = TabAppearance.FlatButtons;
settingsTabControl.ItemSize = new Size(0, 1);
settingsTabControl.SizeMode = TabSizeMode.Fixed;
- lstSettingsNav.SelectedIndex = 0;
+ settingsNavigation.SelectedIndex = 0;
TopMost = settings.alwaysOnTop;
LoadSettings();
}
- private void TxtPaddingLeft_Click(object sender, EventArgs e)
+ private void EditorPaddingLeftTextBox_Click(object sender, EventArgs e)
{
- txtPaddingLeft.SelectAll();
+ editorPaddingLeftTextBox.SelectAll();
}
private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
@@ -185,7 +185,7 @@ private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
{
settings.PasswordIterations = "1";
}
- if (string.IsNullOrWhiteSpace(txtPaddingLeft.Text))
+ if (string.IsNullOrWhiteSpace(editorPaddingLeftTextBox.Text))
{
settings.editorPaddingLeft = "0";
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
@@ -198,7 +198,7 @@ private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
/*Settings Section*/
private void EditorFontColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = pnlEditorFontColor.BackColor;
+ colorDialog.Color = editorFontColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
@@ -207,13 +207,13 @@ private void EditorFontColor_Click(object sender, EventArgs e)
main.richTextBox.ForeColor = colorDialog.Color;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
settings.editroForeColor = colorDialog.Color;
- pnlEditorFontColor.BackColor = colorDialog.Color;
+ editorFontColor.BackColor = colorDialog.Color;
}
}
}
- private void EditorBGColor_Click(object sender, EventArgs e)
+ private void EditorBackColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = pnlEditorBackColor.BackColor;
+ colorDialog.Color = editorBackColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
@@ -222,74 +222,74 @@ private void EditorBGColor_Click(object sender, EventArgs e)
main.richTextBox.BackColor = colorDialog.Color;
main.BackColor = colorDialog.Color;
settings.editorBackColor = colorDialog.Color;
- pnlEditorBackColor.BackColor = colorDialog.Color;
+ editorBackColor.BackColor = colorDialog.Color;
}
}
}
- private void LNBackColor_Click(object sender, EventArgs e)
+ private void LineNumbersBackColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = LNBackColor.BackColor;
+ colorDialog.Color = lineNumbersBackColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
- main.RTBLineNumbers.BackColor = colorDialog.Color;
- LNBackColor.BackColor = colorDialog.Color;
- settings.lnBackColor = colorDialog.Color;
+ main.lineNumbers.BackColor = colorDialog.Color;
+ lineNumbersBackColor.BackColor = colorDialog.Color;
+ settings.lineNumbersBackColor = colorDialog.Color;
}
}
}
- private void LNFontColor_Click(object sender, EventArgs e)
+ private void LineNumbersFontColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = LNFontColor.BackColor;
+ colorDialog.Color = lineNumbersFontColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
- main.RTBLineNumbers.ForeColor = colorDialog.Color;
- LNFontColor.BackColor = colorDialog.Color;
- settings.lnForeColor = colorDialog.Color;
+ main.lineNumbers.ForeColor = colorDialog.Color;
+ lineNumbersFontColor.BackColor = colorDialog.Color;
+ settings.lineNumbersForeColor = colorDialog.Color;
}
}
}
- private void BLColor_Click(object sender, EventArgs e)
+ private void BorderLinesColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = BLColor.BackColor;
+ colorDialog.Color = borderLinesColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
- main.RTBLineNumbers.BorderLines_Color = colorDialog.Color;
- BLColor.BackColor = colorDialog.Color;
- settings.blColor = colorDialog.Color;
+ main.lineNumbers.BorderLines_Color = colorDialog.Color;
+ borderLinesColor.BackColor = colorDialog.Color;
+ settings.borderLinesColor = colorDialog.Color;
}
}
}
- private void GLColor_Click(object sender, EventArgs e)
+ private void GridLinesColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = GLColor.BackColor;
+ colorDialog.Color = gridLinesColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
- main.RTBLineNumbers.GridLines_Color = colorDialog.Color;
- GLColor.BackColor = colorDialog.Color;
- settings.glColor = colorDialog.Color;
+ main.lineNumbers.GridLines_Color = colorDialog.Color;
+ gridLinesColor.BackColor = colorDialog.Color;
+ settings.gridLinesColor = colorDialog.Color;
}
}
}
- private void LstSettingsNav_Click(object sender, EventArgs e)
+ private void SettingsNavigation_Click(object sender, EventArgs e)
{
- switch (lstSettingsNav.SelectedIndex)
+ switch (settingsNavigation.SelectedIndex)
{
case 0:
settingsTabControl.SelectedTab = editorTabPage;
@@ -325,18 +325,18 @@ private void SettingsTabControl_SelectedIndexChanged(object sender, EventArgs e)
settingsTabControl.Focus();
}
- private void ToolbarVisible_Click(object sender, EventArgs e)
+ private void ToolbarVisibleCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- main.toolbarPanel.Visible = toolbarVisible.Checked;
- main.RTBLineNumbers.Height = 1;
+ main.toolbarPanel.Visible = toolbarVisibleCheckBox.Checked;
+ main.lineNumbers.Height = 1;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
- settings.toolbarVisible= toolbarVisible.Checked;
+ settings.toolbarVisible= toolbarVisibleCheckBox.Checked;
}
private void AssociateCheckBox_Click(object sender, EventArgs e)
{
- if (chkAssociate.Checked)
+ if (associateCheckBox.Checked)
{
AssociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
}
@@ -344,13 +344,13 @@ private void AssociateCheckBox_Click(object sender, EventArgs e)
{
DissociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
}
- settings.explorerAssociate = chkAssociate.Checked;
+ settings.explorerAssociate = associateCheckBox.Checked;
}
private void IntegrateCheckBox_Click(object sender, EventArgs e)
{
- if (chkIntegrate.Checked)
+ if (integrateCheckBox.Checked)
{
MenuIntegrate("enable");
}
@@ -358,26 +358,27 @@ private void IntegrateCheckBox_Click(object sender, EventArgs e)
{
MenuIntegrate("disable");
}
- settings.explorerIntegrate = chkIntegrate.Checked;
+ settings.explorerIntegrate = integrateCheckBox.Checked;
}
- private void TxtPaddingLeft_TextChanged(object sender, EventArgs e)
+ private void EditorPaddingLeftTextBox_TextChanged(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (txtPaddingLeft.Text.Length >= 1)
+ if (editorPaddingLeftTextBox.Text.Length >= 1)
{
- if (settings.editorPaddingLeft != txtPaddingLeft.Text)
+ if (settings.editorPaddingLeft != editorPaddingLeftTextBox.Text)
{
- main.richTextBox.SetInnerMargins(Convert.ToInt32(txtPaddingLeft.Text), 0, 0, 0);
+ main.richTextBox.SetInnerMargins(Convert.ToInt32(editorPaddingLeftTextBox.Text), 0, 0, 0);
main.richTextBox.Refresh();
- settings.editorPaddingLeft = txtPaddingLeft.Text;
+ settings.editorPaddingLeft = editorPaddingLeftTextBox.Text;
}
- }
+ }
+
}
private void SendToCheckBox_Click(object sender, EventArgs e)
{
- if (chkSendTo.Checked)
+ if (sendToCheckBox.Checked)
{
SendToShortcut();
}
@@ -389,35 +390,35 @@ private void SendToCheckBox_Click(object sender, EventArgs e)
System.IO.File.Delete(shortcutPath);
}
}
- settings.explorerSendTo = chkSendTo.Checked;
+ settings.explorerSendTo = sendToCheckBox.Checked;
}
- private void InsKeyComboBox_DropDownClosed(object sender, EventArgs e)
+ private void EditorInsertKeyComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.insKey != cbxInsKey.Text)
+ if (settings.insertKey != editorInsertKeyComboBox.Text)
{
- if (cbxInsKey.Text == "Disable")
+ if (editorInsertKeyComboBox.Text == "Disable")
{
- main.insMainMenu.ShortcutKeys = Keys.Insert;
+ main.insertMainMenu.ShortcutKeys = Keys.Insert;
}
else
{
- main.insMainMenu.ShortcutKeys = Keys.None;
+ main.insertMainMenu.ShortcutKeys = Keys.None;
}
- settings.insKey = cbxInsKey.Text;
+ settings.insertKey = editorInsertKeyComboBox.Text;
}
}
private void MenuIconsCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- settings.menuIcons = chkMenuIcons.Checked;
- main.MenuIcons(settings.menuIcons);
+ settings.menuIcons = menuIconsCheckBox.Checked;
+ main.MenuIcons(settings.menuIcons);
}
- private void BtnFont_Click(object sender, EventArgs e)
+ private void EditorFontButton_Click(object sender, EventArgs e)
{
using (new CenterWinDialog(this))
{
@@ -425,115 +426,115 @@ private void BtnFont_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.richTextBox.Font = fontDialog.Font;
- main.RTBLineNumbers.Font = fontDialog.Font;
+ main.lineNumbers.Font = fontDialog.Font;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
}
}
}
- private void LNVisibleComboBox_DropDownClosed(object sender, EventArgs e)
+ private void LineNumbersVisibleComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.lnVisible != LNVisibleComboBox.Text)
+ if (settings.lineNumbersVisible != lineNumbersVisibleComboBox.Text)
{
- settings.lnVisible = LNVisibleComboBox.Text;
- main.RTBLineNumbers.Visible = bool.Parse(settings.lnVisible);
- main.RTBLineNumbers.Height = 1;
- settings.lnVisible = LNVisibleComboBox.Text;
+ settings.lineNumbersVisible = lineNumbersVisibleComboBox.Text;
+ main.lineNumbers.Visible = bool.Parse(settings.lineNumbersVisible);
+ main.lineNumbers.Height = 1;
+ settings.lineNumbersVisible = lineNumbersVisibleComboBox.Text;
}
}
- private void BLShowСomboBox_DropDownClosed(object sender, EventArgs e)
+ private void BorderLinesVisibleСomboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.blShow != BLShowСomboBox.Text)
+ if (settings.borderLinesVisible != borderLinesVisibleСomboBox.Text)
{
- settings.blShow = BLShowСomboBox.Text;
- main.RTBLineNumbers.Show_BorderLines = bool.Parse(settings.blShow);
+ settings.borderLinesVisible = borderLinesVisibleСomboBox.Text;
+ main.lineNumbers.Show_BorderLines = bool.Parse(settings.borderLinesVisible);
}
}
- private void BLStyleComboBox_DropDownClosed(object sender, EventArgs e)
+ private void BorderLinesStyleComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.blStyle != BLStyleComboBox.Text)
+ if (settings.borderLinesStyle != borderLinesStyleComboBox.Text)
{
- switch (BLStyleComboBox.Text)
+ switch (borderLinesStyleComboBox.Text)
{
case "Solid":
- settings.blStyle = DashStyle.Solid.ToString();
+ settings.borderLinesStyle = DashStyle.Solid.ToString();
break;
case "Dash":
- settings.blStyle = DashStyle.Dash.ToString();
+ settings.borderLinesStyle = DashStyle.Dash.ToString();
break;
case "Dot":
- settings.blStyle = DashStyle.Dot.ToString();
+ settings.borderLinesStyle = DashStyle.Dot.ToString();
break;
case "DashDot":
- settings.blStyle = DashStyle.DashDot.ToString();
+ settings.borderLinesStyle = DashStyle.DashDot.ToString();
break;
case "DashDotDot":
- settings.blStyle = DashStyle.DashDotDot.ToString();
+ settings.borderLinesStyle = DashStyle.DashDotDot.ToString();
break;
}
- main.RTBLineNumbers.BorderLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.blStyle);
+ main.lineNumbers.BorderLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.borderLinesStyle);
}
}
- private void GLShowComboBox_DropDownClosed(object sender, EventArgs e)
+ private void GridLinesVisibleComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.glShow != GLShowComboBox.Text)
+ if (settings.gridLinesVisible != gridLinesVisibleComboBox.Text)
{
- settings.glShow = GLShowComboBox.Text;
- main.RTBLineNumbers.Show_GridLines = bool.Parse(settings.glShow);
+ settings.gridLinesVisible = gridLinesVisibleComboBox.Text;
+ main.lineNumbers.Show_GridLines = bool.Parse(settings.gridLinesVisible);
}
}
- private void GLStyleComboBox_DropDownClosed(object sender, EventArgs e)
+ private void GridLinesStyleComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.glStyle.ToString() != GLStyleComboBox.Text)
+ if (settings.gridLinesStyle.ToString() != gridLinesStyleComboBox.Text)
{
- switch (GLStyleComboBox.Text)
+ switch (gridLinesStyleComboBox.Text)
{
case "Solid":
- settings.glStyle = DashStyle.Solid.ToString(); ;
+ settings.gridLinesStyle = DashStyle.Solid.ToString(); ;
break;
case "Dash":
- settings.glStyle = DashStyle.Dash.ToString();
+ settings.gridLinesStyle = DashStyle.Dash.ToString();
break;
case "Dot":
- settings.glStyle = DashStyle.Dot.ToString();
+ settings.gridLinesStyle = DashStyle.Dot.ToString();
break;
case "DashDot":
- settings.glStyle = DashStyle.DashDot.ToString();
+ settings.gridLinesStyle = DashStyle.DashDot.ToString();
break;
case "DashDotDot":
- settings.glStyle = DashStyle.DashDotDot.ToString();
+ settings.gridLinesStyle = DashStyle.DashDotDot.ToString();
break;
}
- main.RTBLineNumbers.GridLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.glStyle);
+ main.lineNumbers.GridLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.gridLinesStyle);
}
}
private void KeySizeComboBox_DropDownClosed(object sender, EventArgs e)
{
- if (cboKeySize.Text != settings.KeySize)
+ if (keySizeComboBox.Text != settings.KeySize)
{
- settings.KeySize = cboKeySize.Text;
+ settings.KeySize = keySizeComboBox.Text;
}
}
- private void HashComboBox_DropDownClosed(object sender, EventArgs e)
+ private void HashAlgorithmComboBox_DropDownClosed(object sender, EventArgs e)
{
- if (cboHash.Text != settings.HashAlgorithm)
+ if (hashAlgorithmComboBox.Text != settings.HashAlgorithm)
{
- settings.HashAlgorithm = cboHash.Text;
+ settings.HashAlgorithm = hashAlgorithmComboBox.Text;
}
}
- private void TxtPaddingLeft_KeyPress(object sender, KeyPressEventArgs e)
+ private void EditorPaddingLeftTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar))
{
@@ -541,7 +542,7 @@ private void TxtPaddingLeft_KeyPress(object sender, KeyPressEventArgs e)
}
}
- private void PwdIterationsTextBox_KeyPress(object sender, KeyPressEventArgs e)
+ private void PasswordIterationsTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar))
{
@@ -553,37 +554,37 @@ private void FontDialog_Apply(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.richTextBox.Font = fontDialog.Font;
- main.RTBLineNumbers.Font = fontDialog.Font;
+ main.lineNumbers.Font = fontDialog.Font;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
settings.editorFont = fontDialog.Font;
}
- private void StatusPanelVisible_Click(object sender, EventArgs e)
+ private void StatusPanelVisibleCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- main.statusPanel.Visible = statusPanelVisible.Checked;
- main.richTextBox.SetInnerMargins(Convert.ToInt32(txtPaddingLeft.Text), 0, 0, 0);
- settings.statusPanelVisible = statusPanelVisible.Checked;
+ main.statusPanel.Visible = statusPanelVisibleCheckBox.Checked;
+ main.richTextBox.SetInnerMargins(Convert.ToInt32(editorPaddingLeftTextBox.Text), 0, 0, 0);
+ settings.statusPanelVisible = statusPanelVisibleCheckBox.Checked;
}
- private void StatusBackColor_Click(object sender, EventArgs e)
+ private void StatusPanelBackColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = statusBackColor.BackColor;
+ colorDialog.Color = statusPanelBackColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
main.statusPanel.BackColor = colorDialog.Color;
- statusBackColor.BackColor = colorDialog.Color;
+ statusPanelBackColor.BackColor = colorDialog.Color;
settings.statusPanelBackColor = colorDialog.Color;
}
}
}
- private void StatusFontColor_Click(object sender, EventArgs e)
+ private void StatusPanelFontColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = statusFontColor.BackColor;
+ colorDialog.Color = statusPanelFontColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
@@ -591,7 +592,7 @@ private void StatusFontColor_Click(object sender, EventArgs e)
MainForm main = Owner as MainForm;
main.statusPanel.ForeColor = colorDialog.Color;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
- statusFontColor.BackColor = colorDialog.Color;
+ statusPanelFontColor.BackColor = colorDialog.Color;
settings.statusPanelFontColor = colorDialog.Color;
}
}
@@ -612,10 +613,10 @@ private void ToolbarBackColor_Click(object sender, EventArgs e)
}
}
- private void ToolbarBorder_Click(object sender, EventArgs e)
+ private void ToolbarBorderCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (toolbarBorder.Checked)
+ if (toolbarBorderCheckBox.Checked)
{
main.toolbarPanel.BorderStyle = BorderStyle.FixedSingle;
}
@@ -623,7 +624,7 @@ private void ToolbarBorder_Click(object sender, EventArgs e)
{
main.toolbarPanel.BorderStyle = BorderStyle.None;
}
- settings.toolbarBorder = toolbarBorder.Checked;
+ settings.toolbarBorder = toolbarBorderCheckBox.Checked;
}
private void SearchBackColor_Click(object sender, EventArgs e)
@@ -651,9 +652,9 @@ private void SearchFontColor_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.searchTextBox.ForeColor = colorDialog.Color;
- main.caseSensitiveCheckBox.ForeColor = colorDialog.Color;
- main.wholeWordCheckBox.ForeColor = colorDialog.Color;
- main.findNextButton.ForeColor = colorDialog.Color;
+ main.searchCaseSensitiveCheckBox.ForeColor = colorDialog.Color;
+ main.searchWholeWordCheckBox.ForeColor = colorDialog.Color;
+ main.searchFindNextButton.ForeColor = colorDialog.Color;
settings.searchPanelForeColor = colorDialog.Color;
searchFontColor.BackColor = colorDialog.Color;
}
@@ -663,7 +664,7 @@ private void SearchFontColor_Click(object sender, EventArgs e)
private void MainMenuCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (chkMainMenu.Checked)
+ if (mainMenuCheckBox.Checked)
{
main.mainMenu.Visible = true;
}
@@ -671,147 +672,147 @@ private void MainMenuCheckBox_Click(object sender, EventArgs e)
{
main.mainMenu.Visible = false;
}
- settings.mainMenuVisible = chkMainMenu.Checked;
+ settings.mainMenuVisible = mainMenuCheckBox.Checked;
}
- private void ToolbarOldIcons_Click(object sender, EventArgs e)
+ private void ToolbarOldIconsCheckBox_Click(object sender, EventArgs e)
{
- settings.oldToolbarIcons = toolbarOldIcons.Checked;
+ settings.oldToolbarIcons = toolbarOldIconsCheckBox.Checked;
MainForm main = Owner as MainForm;
main.Toolbaricons(settings.oldToolbarIcons);
}
- private void CbxOpenLinks_DropDownClosed(object sender, EventArgs e)
+ private void EditorOpenLinksWithComboBox_DropDownClosed(object sender, EventArgs e)
{
- if (settings.openLinks != cbxOpenLinks.Text)
+ if (settings.openLinks != editorOpenLinksWithComboBox.Text)
{
- settings.openLinks = cbxOpenLinks.Text;
- }
-
- }
-
- private void AutoLockCheckBox_Click(object sender, EventArgs e)
- {
- settings.autoLock = chkAutoLock.Checked;
- }
-
- private void UpdatesCheckBox_Click(object sender, EventArgs e)
- {
- settings.autoCheckUpdate = chkUpdates.Checked;
-
- }
-
- private void PwdIterationsTextBox_TextChanged(object sender, EventArgs e)
- {
- if (txtPwdIterations.Text != settings.PasswordIterations)
- {
- settings.PasswordIterations = txtPwdIterations.Text;
+ settings.openLinks = editorOpenLinksWithComboBox.Text;
}
}
- private void MLVisibleComboBox_DropDownClosed(object sender, EventArgs e)
+ private void AutoLockOnMinimizeCheckBox_Click(object sender, EventArgs e)
+ {
+ settings.autoLock = autoLockOnMinimizeCheckBox.Checked;
+ }
+
+ private void AutoCheckUpdatesCheckBox_Click(object sender, EventArgs e)
+ {
+ settings.autoCheckUpdate = autoCheckUpdatesCheckBox.Checked;
+
+ }
+
+ private void PasswordIterationsTextBox_TextChanged(object sender, EventArgs e)
+ {
+ if (passwordIterationsTextBox.Text != settings.PasswordIterations)
+ {
+ settings.PasswordIterations = passwordIterationsTextBox.Text;
+ }
+ }
+
+ private void MarginLinesVisibleComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.mlVisible != MLVisibleComboBox.Text)
+ if (settings.marginLinesVisible != marginLinesVisibleComboBox.Text)
{
- settings.mlVisible = MLVisibleComboBox.Text;
- main.RTBLineNumbers.Show_MarginLines = bool.Parse(settings.mlVisible);
+ settings.marginLinesVisible = marginLinesVisibleComboBox.Text;
+ main.lineNumbers.Show_MarginLines = bool.Parse(settings.marginLinesVisible);
}
}
- private void MLSideComboBox_DropDownClosed(object sender, EventArgs e)
+ private void MarginLinesSideComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.mlSide.ToString() != MLSideComboBox.Text)
+ if (settings.marginLinesSide.ToString() != marginLinesSideComboBox.Text)
{
- switch (MLSideComboBox.Text)
+ switch (marginLinesSideComboBox.Text)
{
case "None":
- settings.mlSide = LineNumbers.LineNumbers.LineNumberDockSide.None.ToString();
+ settings.marginLinesSide = LineNumbers.LineNumbers.LineNumberDockSide.None.ToString();
break;
case "Left":
- settings.mlSide = LineNumbers.LineNumbers.LineNumberDockSide.Left.ToString();
+ settings.marginLinesSide = LineNumbers.LineNumbers.LineNumberDockSide.Left.ToString();
break;
case "Right":
- settings.mlSide = LineNumbers.LineNumbers.LineNumberDockSide.Right.ToString();
+ settings.marginLinesSide = LineNumbers.LineNumbers.LineNumberDockSide.Right.ToString();
break;
case "Height":
- settings.mlSide = LineNumbers.LineNumbers.LineNumberDockSide.Height.ToString();
+ settings.marginLinesSide = LineNumbers.LineNumbers.LineNumberDockSide.Height.ToString();
break;
}
- main.RTBLineNumbers.MarginLines_Side = (LineNumbers.LineNumbers.LineNumberDockSide)Enum.Parse(typeof(LineNumbers.LineNumbers.LineNumberDockSide), settings.mlSide);
+ main.lineNumbers.MarginLines_Side = (LineNumbers.LineNumbers.LineNumberDockSide)Enum.Parse(typeof(LineNumbers.LineNumbers.LineNumberDockSide), settings.marginLinesSide);
}
}
- private void MLStyleComboBox_DropDownClosed(object sender, EventArgs e)
+ private void MarginLinesStyleComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.mlStyle != MLStyleComboBox.Text)
+ if (settings.marginLinesStyle != marginLinesStyleComboBox.Text)
{
- switch (MLStyleComboBox.Text)
+ switch (marginLinesStyleComboBox.Text)
{
case "Solid":
- settings.mlStyle = DashStyle.Solid.ToString();
+ settings.marginLinesStyle = DashStyle.Solid.ToString();
break;
case "Dash":
- settings.mlStyle = DashStyle.Dash.ToString();
+ settings.marginLinesStyle = DashStyle.Dash.ToString();
break;
case "Dot":
- settings.mlStyle = DashStyle.Dot.ToString();
+ settings.marginLinesStyle = DashStyle.Dot.ToString();
break;
case "DashDot":
- settings.mlStyle = DashStyle.DashDot.ToString();
+ settings.marginLinesStyle = DashStyle.DashDot.ToString();
break;
case "DashDotDot":
- settings.mlStyle = DashStyle.DashDotDot.ToString();
+ settings.marginLinesStyle = DashStyle.DashDotDot.ToString();
break;
}
- main.RTBLineNumbers.MarginLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.mlStyle);
+ main.lineNumbers.MarginLines_Style = (DashStyle)Enum.Parse(typeof(DashStyle), settings.marginLinesStyle);
}
}
- private void MLColor_Click(object sender, EventArgs e)
+ private void MarginLinesColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = MLColor.BackColor;
+ colorDialog.Color = marginLinesColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
- main.RTBLineNumbers.MarginLines_Color = colorDialog.Color;
- MLColor.BackColor = colorDialog.Color;
- settings.mlColor = colorDialog.Color;
+ main.lineNumbers.MarginLines_Color = colorDialog.Color;
+ marginLinesColor.BackColor = colorDialog.Color;
+ settings.marginLinesColor = colorDialog.Color;
}
}
}
- private void ChkMinimizeToTray_Click(object sender, EventArgs e)
+ private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (chkCloseToTray.Checked == false & chkMinimizeToTray.Checked == false)
+ if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false)
{
main.trayIcon.Visible = false;
}
- if (chkMinimizeToTray.Checked == true)
+ if (minimizeToTrayCheckBox.Checked == true)
{
main.trayIcon.Visible = true;
}
- settings.minimizeToTray = chkMinimizeToTray.Checked;
+ settings.minimizeToTray = minimizeToTrayCheckBox.Checked;
}
- private void ChkCloseToTray_Click(object sender, EventArgs e)
+ private void CloseToTrayCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (chkCloseToTray.Checked == false & chkMinimizeToTray.Checked ==false )
+ if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked ==false )
{
main.trayIcon.Visible = false;
}
- if (chkCloseToTray.Checked == true)
+ if (closeToTrayCheckBox.Checked == true)
{
main.trayIcon.Visible = true;
}
- settings.closeToTray = chkCloseToTray.Checked;
+ settings.closeToTray = closeToTrayCheckBox.Checked;
}
+
/*Settings Section*/
diff --git a/Crypto Notepad/SettingsForm.resx b/Crypto Notepad/SettingsForm.resx
index 543a07b..add797e 100644
--- a/Crypto Notepad/SettingsForm.resx
+++ b/Crypto Notepad/SettingsForm.resx
@@ -121,7 +121,7 @@
17, 17
- 115, 17
+ 131, 17
76