diff --git a/Crypto Notepad/AboutFrom.Designer.cs b/Crypto Notepad/AboutFrom.Designer.cs
index 227aa5f..bc0757a 100644
--- a/Crypto Notepad/AboutFrom.Designer.cs
+++ b/Crypto Notepad/AboutFrom.Designer.cs
@@ -29,154 +29,154 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutFrom));
- this.appVersionLabel = new System.Windows.Forms.Label();
- this.appLogo = new System.Windows.Forms.PictureBox();
- this.thirdPartyDevLabel = new System.Windows.Forms.Label();
- this.authorLabel = new System.Windows.Forms.LinkLabel();
- this.licenseLabel = new System.Windows.Forms.LinkLabel();
- this.githubLabel = new System.Windows.Forms.LinkLabel();
- this.contributorsLabel = new System.Windows.Forms.Label();
- this.contributorsList = new Crypto_Notepad.ExRichTextBox();
- this.thirdPartyDevList = new Crypto_Notepad.ExRichTextBox();
- ((System.ComponentModel.ISupportInitialize)(this.appLogo)).BeginInit();
+ this.lblAppVersion = new System.Windows.Forms.Label();
+ this.picLogo = new System.Windows.Forms.PictureBox();
+ this.lblThirdPartyDev = new System.Windows.Forms.Label();
+ this.lblAuthor = new System.Windows.Forms.LinkLabel();
+ this.lblLicense = new System.Windows.Forms.LinkLabel();
+ this.lblGithub = new System.Windows.Forms.LinkLabel();
+ this.lblContributors = new System.Windows.Forms.Label();
+ this.rtbContributors = new Crypto_Notepad.ExRichTextBox();
+ this.rtbThirdPartyDev = new Crypto_Notepad.ExRichTextBox();
+ ((System.ComponentModel.ISupportInitialize)(this.picLogo)).BeginInit();
this.SuspendLayout();
//
- // appVersionLabel
+ // lblAppVersion
//
- this.appVersionLabel.AutoSize = true;
- this.appVersionLabel.Cursor = System.Windows.Forms.Cursors.Hand;
- this.appVersionLabel.Font = new System.Drawing.Font("Consolas", 14.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.appVersionLabel.ForeColor = System.Drawing.SystemColors.Highlight;
- this.appVersionLabel.Location = new System.Drawing.Point(5, 9);
- this.appVersionLabel.Name = "appVersionLabel";
- this.appVersionLabel.Size = new System.Drawing.Size(220, 22);
- this.appVersionLabel.TabIndex = 0;
- this.appVersionLabel.Text = "Crypto Notepad v1.0.0";
- this.appVersionLabel.Click += new System.EventHandler(this.AppVersionLabel_Click);
+ this.lblAppVersion.AutoSize = true;
+ this.lblAppVersion.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.lblAppVersion.Font = new System.Drawing.Font("Consolas", 14.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.lblAppVersion.ForeColor = System.Drawing.SystemColors.Highlight;
+ this.lblAppVersion.Location = new System.Drawing.Point(5, 9);
+ this.lblAppVersion.Name = "lblAppVersion";
+ this.lblAppVersion.Size = new System.Drawing.Size(220, 22);
+ this.lblAppVersion.TabIndex = 0;
+ this.lblAppVersion.Text = "Crypto Notepad v1.0.0";
+ this.lblAppVersion.Click += new System.EventHandler(this.LblAppVersion_Click);
//
- // appLogo
+ // picLogo
//
- this.appLogo.Cursor = System.Windows.Forms.Cursors.Hand;
- this.appLogo.Image = ((System.Drawing.Image)(resources.GetObject("appLogo.Image")));
- this.appLogo.Location = new System.Drawing.Point(341, 2);
- this.appLogo.Name = "appLogo";
- this.appLogo.Size = new System.Drawing.Size(77, 68);
- this.appLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
- this.appLogo.TabIndex = 1;
- this.appLogo.TabStop = false;
- this.appLogo.Click += new System.EventHandler(this.AppLogo_Click);
+ this.picLogo.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.picLogo.Image = ((System.Drawing.Image)(resources.GetObject("picLogo.Image")));
+ this.picLogo.Location = new System.Drawing.Point(341, 2);
+ this.picLogo.Name = "picLogo";
+ this.picLogo.Size = new System.Drawing.Size(77, 68);
+ this.picLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+ this.picLogo.TabIndex = 1;
+ this.picLogo.TabStop = false;
+ this.picLogo.Click += new System.EventHandler(this.PicLogo_Click);
//
- // thirdPartyDevLabel
+ // lblThirdPartyDev
//
- this.thirdPartyDevLabel.AutoSize = true;
- this.thirdPartyDevLabel.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.thirdPartyDevLabel.ForeColor = System.Drawing.SystemColors.Highlight;
- this.thirdPartyDevLabel.Location = new System.Drawing.Point(5, 158);
- this.thirdPartyDevLabel.Name = "thirdPartyDevLabel";
- this.thirdPartyDevLabel.Size = new System.Drawing.Size(200, 18);
- this.thirdPartyDevLabel.TabIndex = 4;
- this.thirdPartyDevLabel.Text = "Third-party developments";
+ this.lblThirdPartyDev.AutoSize = true;
+ this.lblThirdPartyDev.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.lblThirdPartyDev.ForeColor = System.Drawing.SystemColors.Highlight;
+ this.lblThirdPartyDev.Location = new System.Drawing.Point(5, 158);
+ this.lblThirdPartyDev.Name = "lblThirdPartyDev";
+ this.lblThirdPartyDev.Size = new System.Drawing.Size(200, 18);
+ this.lblThirdPartyDev.TabIndex = 4;
+ this.lblThirdPartyDev.Text = "Third-party developments";
//
- // authorLabel
+ // lblAuthor
//
- this.authorLabel.ActiveLinkColor = System.Drawing.Color.White;
- this.authorLabel.AutoSize = true;
- this.authorLabel.DisabledLinkColor = System.Drawing.Color.White;
- this.authorLabel.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.authorLabel.ForeColor = System.Drawing.SystemColors.Control;
- this.authorLabel.LinkArea = new System.Windows.Forms.LinkArea(38, 8);
- this.authorLabel.LinkColor = System.Drawing.Color.White;
- this.authorLabel.Location = new System.Drawing.Point(8, 38);
- this.authorLabel.Name = "authorLabel";
- this.authorLabel.Size = new System.Drawing.Size(317, 19);
- this.authorLabel.TabIndex = 9;
- this.authorLabel.TabStop = true;
- this.authorLabel.Text = "This is an open-source app created by Sigmanor";
- this.authorLabel.UseCompatibleTextRendering = true;
- this.authorLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.AuthorLabel_LinkClicked);
+ this.lblAuthor.ActiveLinkColor = System.Drawing.Color.White;
+ this.lblAuthor.AutoSize = true;
+ this.lblAuthor.DisabledLinkColor = System.Drawing.Color.White;
+ this.lblAuthor.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.lblAuthor.ForeColor = System.Drawing.SystemColors.Control;
+ this.lblAuthor.LinkArea = new System.Windows.Forms.LinkArea(38, 8);
+ this.lblAuthor.LinkColor = System.Drawing.Color.White;
+ this.lblAuthor.Location = new System.Drawing.Point(8, 38);
+ this.lblAuthor.Name = "lblAuthor";
+ this.lblAuthor.Size = new System.Drawing.Size(317, 19);
+ this.lblAuthor.TabIndex = 9;
+ this.lblAuthor.TabStop = true;
+ this.lblAuthor.Text = "This is an open-source app created by Sigmanor";
+ this.lblAuthor.UseCompatibleTextRendering = true;
+ this.lblAuthor.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LblAuthor_LinkClicked);
//
- // licenseLabel
+ // lblLicense
//
- this.licenseLabel.ActiveLinkColor = System.Drawing.Color.White;
- this.licenseLabel.AutoSize = true;
- this.licenseLabel.DisabledLinkColor = System.Drawing.Color.White;
- this.licenseLabel.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.licenseLabel.ForeColor = System.Drawing.SystemColors.Control;
- this.licenseLabel.LinkArea = new System.Windows.Forms.LinkArea(18, 3);
- this.licenseLabel.LinkColor = System.Drawing.Color.White;
- this.licenseLabel.Location = new System.Drawing.Point(8, 57);
- this.licenseLabel.Name = "licenseLabel";
- this.licenseLabel.Size = new System.Drawing.Size(202, 19);
- this.licenseLabel.TabIndex = 9;
- this.licenseLabel.TabStop = true;
- this.licenseLabel.Text = "Distributed under MIT license";
- this.licenseLabel.UseCompatibleTextRendering = true;
- this.licenseLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LicenseLabel_LinkClicked);
+ this.lblLicense.ActiveLinkColor = System.Drawing.Color.White;
+ this.lblLicense.AutoSize = true;
+ this.lblLicense.DisabledLinkColor = System.Drawing.Color.White;
+ this.lblLicense.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.lblLicense.ForeColor = System.Drawing.SystemColors.Control;
+ this.lblLicense.LinkArea = new System.Windows.Forms.LinkArea(18, 3);
+ this.lblLicense.LinkColor = System.Drawing.Color.White;
+ this.lblLicense.Location = new System.Drawing.Point(8, 57);
+ this.lblLicense.Name = "lblLicense";
+ this.lblLicense.Size = new System.Drawing.Size(202, 19);
+ this.lblLicense.TabIndex = 9;
+ this.lblLicense.TabStop = true;
+ this.lblLicense.Text = "Distributed under MIT license";
+ this.lblLicense.UseCompatibleTextRendering = true;
+ this.lblLicense.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LblLicense_LinkClicked);
//
- // githubLabel
+ // lblGithub
//
- this.githubLabel.ActiveLinkColor = System.Drawing.Color.White;
- this.githubLabel.AutoSize = true;
- this.githubLabel.DisabledLinkColor = System.Drawing.Color.White;
- this.githubLabel.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.githubLabel.ForeColor = System.Drawing.SystemColors.Control;
- this.githubLabel.LinkArea = new System.Windows.Forms.LinkArea(52, 6);
- this.githubLabel.LinkColor = System.Drawing.Color.White;
- this.githubLabel.Location = new System.Drawing.Point(8, 75);
- this.githubLabel.Name = "githubLabel";
- this.githubLabel.Size = new System.Drawing.Size(399, 19);
- this.githubLabel.TabIndex = 9;
- this.githubLabel.TabStop = true;
- this.githubLabel.Text = "The source code, issues and documentation posted on GitHub";
- this.githubLabel.UseCompatibleTextRendering = true;
- this.githubLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.GithubLabel_LinkClicked);
+ this.lblGithub.ActiveLinkColor = System.Drawing.Color.White;
+ this.lblGithub.AutoSize = true;
+ this.lblGithub.DisabledLinkColor = System.Drawing.Color.White;
+ this.lblGithub.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.lblGithub.ForeColor = System.Drawing.SystemColors.Control;
+ this.lblGithub.LinkArea = new System.Windows.Forms.LinkArea(52, 6);
+ this.lblGithub.LinkColor = System.Drawing.Color.White;
+ this.lblGithub.Location = new System.Drawing.Point(8, 75);
+ this.lblGithub.Name = "lblGithub";
+ this.lblGithub.Size = new System.Drawing.Size(399, 19);
+ this.lblGithub.TabIndex = 9;
+ this.lblGithub.TabStop = true;
+ this.lblGithub.Text = "The source code, issues and documentation posted on GitHub";
+ this.lblGithub.UseCompatibleTextRendering = true;
+ this.lblGithub.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LblGithub_LinkClicked);
//
- // contributorsLabel
+ // lblContributors
//
- this.contributorsLabel.AutoSize = true;
- this.contributorsLabel.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.contributorsLabel.ForeColor = System.Drawing.SystemColors.Highlight;
- this.contributorsLabel.Location = new System.Drawing.Point(5, 105);
- this.contributorsLabel.Name = "contributorsLabel";
- this.contributorsLabel.Size = new System.Drawing.Size(104, 18);
- this.contributorsLabel.TabIndex = 4;
- this.contributorsLabel.Text = "Contributors";
+ this.lblContributors.AutoSize = true;
+ this.lblContributors.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.lblContributors.ForeColor = System.Drawing.SystemColors.Highlight;
+ this.lblContributors.Location = new System.Drawing.Point(5, 105);
+ this.lblContributors.Name = "lblContributors";
+ this.lblContributors.Size = new System.Drawing.Size(104, 18);
+ this.lblContributors.TabIndex = 4;
+ this.lblContributors.Text = "Contributors";
//
- // contributorsList
+ // rtbContributors
//
- this.contributorsList.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
- this.contributorsList.BorderStyle = System.Windows.Forms.BorderStyle.None;
- this.contributorsList.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.contributorsList.ForeColor = System.Drawing.SystemColors.Control;
- this.contributorsList.Location = new System.Drawing.Point(-1, 126);
- this.contributorsList.Name = "contributorsList";
- this.contributorsList.ReadOnly = true;
- this.contributorsList.RightMargin = 700;
- this.contributorsList.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
- this.contributorsList.ShowSelectionMargin = true;
- this.contributorsList.Size = new System.Drawing.Size(414, 20);
- this.contributorsList.TabIndex = 11;
- this.contributorsList.Text = "h5p9sl https://github.com/h5p9sl";
- this.contributorsList.WordWrap = false;
- this.contributorsList.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.ContributorsList_LinkClicked);
+ this.rtbContributors.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
+ this.rtbContributors.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.rtbContributors.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.rtbContributors.ForeColor = System.Drawing.SystemColors.Control;
+ this.rtbContributors.Location = new System.Drawing.Point(-1, 126);
+ this.rtbContributors.Name = "rtbContributors";
+ this.rtbContributors.ReadOnly = true;
+ this.rtbContributors.RightMargin = 700;
+ this.rtbContributors.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
+ this.rtbContributors.ShowSelectionMargin = true;
+ this.rtbContributors.Size = new System.Drawing.Size(414, 20);
+ this.rtbContributors.TabIndex = 11;
+ this.rtbContributors.Text = "h5p9sl https://github.com/h5p9sl";
+ this.rtbContributors.WordWrap = false;
+ this.rtbContributors.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RtbContributors_LinkClicked);
//
- // thirdPartyDevList
+ // rtbThirdPartyDev
//
- this.thirdPartyDevList.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
- this.thirdPartyDevList.BorderStyle = System.Windows.Forms.BorderStyle.None;
- this.thirdPartyDevList.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.thirdPartyDevList.ForeColor = System.Drawing.SystemColors.Control;
- this.thirdPartyDevList.Location = new System.Drawing.Point(-1, 179);
- this.thirdPartyDevList.Name = "thirdPartyDevList";
- this.thirdPartyDevList.ReadOnly = true;
- this.thirdPartyDevList.RightMargin = 700;
- this.thirdPartyDevList.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedHorizontal;
- this.thirdPartyDevList.ShowSelectionMargin = true;
- this.thirdPartyDevList.Size = new System.Drawing.Size(414, 101);
- this.thirdPartyDevList.TabIndex = 10;
- this.thirdPartyDevList.Text = resources.GetString("thirdPartyDevList.Text");
- this.thirdPartyDevList.WordWrap = false;
- this.thirdPartyDevList.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.ThirdPartyDevList_LinkClicked);
+ this.rtbThirdPartyDev.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
+ this.rtbThirdPartyDev.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.rtbThirdPartyDev.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.rtbThirdPartyDev.ForeColor = System.Drawing.SystemColors.Control;
+ this.rtbThirdPartyDev.Location = new System.Drawing.Point(-1, 179);
+ this.rtbThirdPartyDev.Name = "rtbThirdPartyDev";
+ this.rtbThirdPartyDev.ReadOnly = true;
+ this.rtbThirdPartyDev.RightMargin = 700;
+ this.rtbThirdPartyDev.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedHorizontal;
+ this.rtbThirdPartyDev.ShowSelectionMargin = true;
+ this.rtbThirdPartyDev.Size = new System.Drawing.Size(414, 101);
+ this.rtbThirdPartyDev.TabIndex = 10;
+ this.rtbThirdPartyDev.Text = resources.GetString("rtbThirdPartyDev.Text");
+ this.rtbThirdPartyDev.WordWrap = false;
+ this.rtbThirdPartyDev.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RtbThirdPartyDev_LinkClicked);
//
// AboutFrom
//
@@ -184,15 +184,15 @@ private void InitializeComponent()
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.ClientSize = new System.Drawing.Size(411, 280);
- this.Controls.Add(this.contributorsList);
- this.Controls.Add(this.thirdPartyDevList);
- this.Controls.Add(this.githubLabel);
- this.Controls.Add(this.licenseLabel);
- this.Controls.Add(this.authorLabel);
- this.Controls.Add(this.appLogo);
- this.Controls.Add(this.appVersionLabel);
- this.Controls.Add(this.contributorsLabel);
- this.Controls.Add(this.thirdPartyDevLabel);
+ this.Controls.Add(this.rtbContributors);
+ this.Controls.Add(this.rtbThirdPartyDev);
+ this.Controls.Add(this.lblGithub);
+ this.Controls.Add(this.lblLicense);
+ this.Controls.Add(this.lblAuthor);
+ this.Controls.Add(this.picLogo);
+ this.Controls.Add(this.lblAppVersion);
+ this.Controls.Add(this.lblContributors);
+ this.Controls.Add(this.lblThirdPartyDev);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
@@ -203,7 +203,7 @@ private void InitializeComponent()
this.Text = "About";
this.Load += new System.EventHandler(this.AboutWindow_Load);
this.Click += new System.EventHandler(this.AboutFrom_Click);
- ((System.ComponentModel.ISupportInitialize)(this.appLogo)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picLogo)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -211,14 +211,14 @@ private void InitializeComponent()
#endregion
- private System.Windows.Forms.Label appVersionLabel;
- private System.Windows.Forms.PictureBox appLogo;
- private System.Windows.Forms.Label thirdPartyDevLabel;
- private System.Windows.Forms.LinkLabel authorLabel;
- private System.Windows.Forms.LinkLabel licenseLabel;
- private System.Windows.Forms.LinkLabel githubLabel;
- private System.Windows.Forms.Label contributorsLabel;
- private ExRichTextBox thirdPartyDevList;
- private ExRichTextBox contributorsList;
+ private System.Windows.Forms.Label lblAppVersion;
+ private System.Windows.Forms.PictureBox picLogo;
+ private System.Windows.Forms.Label lblThirdPartyDev;
+ private System.Windows.Forms.LinkLabel lblAuthor;
+ private System.Windows.Forms.LinkLabel lblLicense;
+ private System.Windows.Forms.LinkLabel lblGithub;
+ private System.Windows.Forms.Label lblContributors;
+ private ExRichTextBox rtbThirdPartyDev;
+ private ExRichTextBox rtbContributors;
}
}
\ No newline at end of file
diff --git a/Crypto Notepad/AboutFrom.cs b/Crypto Notepad/AboutFrom.cs
index e230578..85809f8 100644
--- a/Crypto Notepad/AboutFrom.cs
+++ b/Crypto Notepad/AboutFrom.cs
@@ -16,12 +16,12 @@ public AboutFrom()
private void AboutWindow_Load(object sender, EventArgs e)
{
Version vrs = new Version(Application.ProductVersion);
- appVersionLabel.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
+ lblAppVersion.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
}
private void AboutFrom_Click(object sender, EventArgs e)
{
- appLogo.Focus();
+ picLogo.Focus();
}
protected override bool ProcessDialogKey(Keys keyData)
@@ -37,27 +37,27 @@ protected override bool ProcessDialogKey(Keys keyData)
/*Main Information*/
- private void AppVersionLabel_Click(object sender, EventArgs e)
+ private void LblAppVersion_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes");
}
- private void AuthorLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+ private void LblAuthor_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://sigmanor.github.io/");
}
- private void LicenseLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+ private void LblLicense_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE");
}
- private void GithubLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+ private void LblGithub_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad");
}
- private void AppLogo_Click(object sender, EventArgs e)
+ private void PicLogo_Click(object sender, EventArgs e)
{
Process.Start("https://crypto-notepad.github.io/");
}
@@ -65,12 +65,12 @@ private void AppLogo_Click(object sender, EventArgs e)
/*Perform open links*/
- private void ThirdPartyDevList_LinkClicked(object sender, LinkClickedEventArgs e)
+ private void RtbThirdPartyDev_LinkClicked(object sender, LinkClickedEventArgs e)
{
Process.Start(e.LinkText);
}
- private void ContributorsList_LinkClicked(object sender, LinkClickedEventArgs e)
+ private void RtbContributors_LinkClicked(object sender, LinkClickedEventArgs e)
{
Process.Start(e.LinkText);
}
diff --git a/Crypto Notepad/AboutFrom.resx b/Crypto Notepad/AboutFrom.resx
index 6c26ced..1566225 100644
--- a/Crypto Notepad/AboutFrom.resx
+++ b/Crypto Notepad/AboutFrom.resx
@@ -118,7 +118,7 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH
DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp
@@ -367,7 +367,7 @@
oG+yCQAAejY86/8DNhf6iwbS6s8AAAAASUVORK5CYII=
-
+
Line Numbers for RichTextBox: https://www.codeproject.com/Articles/38858/Line-Numbers-for-RichText-Control-in-C
CustomSettingsProvider: http://www.codeproject.com/Articles/20917/Settings-Provider
MsgBoxCenterParent: http://stackoverflow.com/a/2576220/4430027
diff --git a/Crypto Notepad/ChangeKeyForm.Designer.cs b/Crypto Notepad/ChangeKeyForm.Designer.cs
index 1eccddc..2f87932 100644
--- a/Crypto Notepad/ChangeKeyForm.Designer.cs
+++ b/Crypto Notepad/ChangeKeyForm.Designer.cs
@@ -28,141 +28,141 @@ protected override void Dispose(bool disposing)
///
private void InitializeComponent()
{
- this.oldKeyTextBox = new System.Windows.Forms.TextBox();
- this.newKeyTextBox = new System.Windows.Forms.TextBox();
- this.oldKeyLabel = new System.Windows.Forms.Label();
- this.newKeyLabel = new System.Windows.Forms.Label();
- this.acceptButton = new System.Windows.Forms.Button();
- this.mainPanel = new System.Windows.Forms.Panel();
- this.lockIcon = new System.Windows.Forms.PictureBox();
- this.newKeyEyeIcon = new System.Windows.Forms.PictureBox();
- this.oldKeyEyeIcon = new System.Windows.Forms.PictureBox();
- this.statusLabel = new System.Windows.Forms.Label();
- this.mainPanel.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.lockIcon)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.newKeyEyeIcon)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.oldKeyEyeIcon)).BeginInit();
+ 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.SuspendLayout();
//
- // oldKeyTextBox
+ // txtOldKey
//
- this.oldKeyTextBox.Location = new System.Drawing.Point(120, 9);
- this.oldKeyTextBox.Name = "oldKeyTextBox";
- this.oldKeyTextBox.Size = new System.Drawing.Size(121, 20);
- this.oldKeyTextBox.TabIndex = 0;
- this.oldKeyTextBox.UseSystemPasswordChar = true;
- this.oldKeyTextBox.TextChanged += new System.EventHandler(this.OldKeyTextBox_TextChanged);
+ 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);
//
- // newKeyTextBox
+ // txtNewKey
//
- this.newKeyTextBox.Location = new System.Drawing.Point(120, 43);
- this.newKeyTextBox.Name = "newKeyTextBox";
- this.newKeyTextBox.Size = new System.Drawing.Size(121, 20);
- this.newKeyTextBox.TabIndex = 1;
- this.newKeyTextBox.UseSystemPasswordChar = true;
- this.newKeyTextBox.TextChanged += new System.EventHandler(this.NewKeyTextBox_TextChanged);
+ 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);
//
- // oldKeyLabel
+ // lblOldKey
//
- this.oldKeyLabel.AutoSize = true;
- this.oldKeyLabel.Location = new System.Drawing.Point(61, 12);
- this.oldKeyLabel.Name = "oldKeyLabel";
- this.oldKeyLabel.Size = new System.Drawing.Size(47, 13);
- this.oldKeyLabel.TabIndex = 2;
- this.oldKeyLabel.Text = "Old Key:";
+ 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:";
//
- // newKeyLabel
+ // lblNewKey
//
- this.newKeyLabel.AutoSize = true;
- this.newKeyLabel.Location = new System.Drawing.Point(61, 46);
- this.newKeyLabel.Name = "newKeyLabel";
- this.newKeyLabel.Size = new System.Drawing.Size(53, 13);
- this.newKeyLabel.TabIndex = 3;
- this.newKeyLabel.Text = "New Key:";
+ 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:";
//
- // acceptButton
+ // btnAccept
//
- this.acceptButton.Enabled = false;
- this.acceptButton.Location = new System.Drawing.Point(212, 81);
- 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);
+ 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);
//
- // mainPanel
+ // pnlMain
//
- this.mainPanel.BackColor = System.Drawing.Color.White;
- this.mainPanel.Controls.Add(this.lockIcon);
- this.mainPanel.Controls.Add(this.newKeyEyeIcon);
- this.mainPanel.Controls.Add(this.oldKeyLabel);
- this.mainPanel.Controls.Add(this.oldKeyEyeIcon);
- this.mainPanel.Controls.Add(this.oldKeyTextBox);
- this.mainPanel.Controls.Add(this.newKeyTextBox);
- this.mainPanel.Controls.Add(this.newKeyLabel);
- this.mainPanel.Location = new System.Drawing.Point(0, 0);
- this.mainPanel.Name = "mainPanel";
- this.mainPanel.Size = new System.Drawing.Size(268, 75);
- this.mainPanel.TabIndex = 6;
+ 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;
//
- // lockIcon
+ // picLock
//
- this.lockIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.lockIcon.Image = global::Crypto_Notepad.Properties.Resources.big_lock;
- this.lockIcon.Location = new System.Drawing.Point(8, 12);
- this.lockIcon.Name = "lockIcon";
- this.lockIcon.Size = new System.Drawing.Size(47, 47);
- this.lockIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.lockIcon.TabIndex = 7;
- this.lockIcon.TabStop = false;
+ 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;
//
- // newKeyEyeIcon
+ // picNewKey
//
- this.newKeyEyeIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.newKeyEyeIcon.Cursor = System.Windows.Forms.Cursors.Hand;
- this.newKeyEyeIcon.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.newKeyEyeIcon.Location = new System.Drawing.Point(247, 43);
- this.newKeyEyeIcon.Name = "newKeyEyeIcon";
- this.newKeyEyeIcon.Size = new System.Drawing.Size(18, 20);
- this.newKeyEyeIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.newKeyEyeIcon.TabIndex = 5;
- this.newKeyEyeIcon.TabStop = false;
- this.newKeyEyeIcon.Click += new System.EventHandler(this.NewKeyEyeIcon_Click);
+ 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);
//
- // oldKeyEyeIcon
+ // picOldKey
//
- this.oldKeyEyeIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.oldKeyEyeIcon.Cursor = System.Windows.Forms.Cursors.Hand;
- this.oldKeyEyeIcon.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.oldKeyEyeIcon.Location = new System.Drawing.Point(247, 9);
- this.oldKeyEyeIcon.Name = "oldKeyEyeIcon";
- this.oldKeyEyeIcon.Size = new System.Drawing.Size(18, 20);
- this.oldKeyEyeIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.oldKeyEyeIcon.TabIndex = 5;
- this.oldKeyEyeIcon.TabStop = false;
- this.oldKeyEyeIcon.Click += new System.EventHandler(this.OldKeyEyeIcon_Click);
+ 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);
//
- // statusLabel
+ // lblStatus
//
- this.statusLabel.AutoSize = true;
- this.statusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.statusLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.statusLabel.Location = new System.Drawing.Point(5, 87);
- this.statusLabel.Name = "statusLabel";
- this.statusLabel.Size = new System.Drawing.Size(43, 16);
- this.statusLabel.TabIndex = 7;
- this.statusLabel.Text = "status";
- this.statusLabel.Visible = false;
+ 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;
//
// 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.statusLabel);
- this.Controls.Add(this.mainPanel);
- this.Controls.Add(this.acceptButton);
+ this.Controls.Add(this.lblStatus);
+ this.Controls.Add(this.pnlMain);
+ this.Controls.Add(this.btnAccept);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
@@ -170,11 +170,11 @@ private void InitializeComponent()
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Change Key";
- this.mainPanel.ResumeLayout(false);
- this.mainPanel.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.lockIcon)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.newKeyEyeIcon)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.oldKeyEyeIcon)).EndInit();
+ 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.ResumeLayout(false);
this.PerformLayout();
@@ -182,15 +182,15 @@ private void InitializeComponent()
#endregion
- private System.Windows.Forms.TextBox oldKeyTextBox;
- private System.Windows.Forms.TextBox newKeyTextBox;
- private System.Windows.Forms.Label oldKeyLabel;
- private System.Windows.Forms.Label newKeyLabel;
- private System.Windows.Forms.Button acceptButton;
- private System.Windows.Forms.PictureBox oldKeyEyeIcon;
- private System.Windows.Forms.PictureBox newKeyEyeIcon;
- private System.Windows.Forms.Panel mainPanel;
- private System.Windows.Forms.PictureBox lockIcon;
- private System.Windows.Forms.Label statusLabel;
+ 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;
}
}
\ No newline at end of file
diff --git a/Crypto Notepad/ChangeKeyForm.cs b/Crypto Notepad/ChangeKeyForm.cs
index 5b41210..91f8bc7 100644
--- a/Crypto Notepad/ChangeKeyForm.cs
+++ b/Crypto Notepad/ChangeKeyForm.cs
@@ -13,39 +13,39 @@ public ChangeKeyForm()
}
/*Buttons*/
- private async void AcceptButton_Click(object sender, EventArgs e)
+ private async void BtnAccept_Click(object sender, EventArgs e)
{
- if (oldKeyTextBox.Text == PublicVar.encryptionKey.Get() && oldKeyTextBox.Text != newKeyTextBox.Text)
+ if (txtOldKey.Text == PublicVar.encryptionKey.Get() && txtOldKey.Text != txtNewKey.Text)
{
- PublicVar.encryptionKey.Set(newKeyTextBox.Text);
+ PublicVar.encryptionKey.Set(txtNewKey.Text);
PublicVar.keyChanged = true;
- oldKeyTextBox.Text = "";
- newKeyTextBox.Text = "";
- statusLabel.Text = "Key was successfully changed";
- statusLabel.Visible = true;
- acceptButton.Enabled = false;
+ txtOldKey.Text = "";
+ txtNewKey.Text = "";
+ lblStatus.Text = "Key was successfully changed";
+ lblStatus.Visible = true;
+ btnAccept.Enabled = false;
await Task.Delay(2000);
- statusLabel.Text = "";
+ lblStatus.Text = "";
return;
}
- if (oldKeyTextBox.Text != PublicVar.encryptionKey.Get())
+ if (txtOldKey.Text != PublicVar.encryptionKey.Get())
{
SystemSounds.Beep.Play();
- statusLabel.Text = "Invalid old key";
- statusLabel.Visible = true;
- oldKeyTextBox.Text = "";
- newKeyTextBox.Text = "";
+ lblStatus.Text = "Invalid old key";
+ lblStatus.Visible = true;
+ txtOldKey.Text = "";
+ txtNewKey.Text = "";
return;
}
- if (oldKeyTextBox.Text == newKeyTextBox.Text)
+ if (txtOldKey.Text == txtNewKey.Text)
{
SystemSounds.Beep.Play();
- statusLabel.Text = "New key is the same as old";
- statusLabel.Visible = true;
- oldKeyTextBox.Text = "";
- newKeyTextBox.Text = "";
+ lblStatus.Text = "New key is the same as old";
+ lblStatus.Visible = true;
+ txtOldKey.Text = "";
+ txtNewKey.Text = "";
return;
}
}
@@ -53,55 +53,55 @@ private async void AcceptButton_Click(object sender, EventArgs e)
/*Enter keys area*/
- private void OldKeyEyeIcon_Click(object sender, EventArgs e)
+ private void PicOldKeyEyeIcon_Click(object sender, EventArgs e)
{
- if (oldKeyTextBox.UseSystemPasswordChar)
+ if (txtOldKey.UseSystemPasswordChar)
{
- oldKeyTextBox.UseSystemPasswordChar = false;
- oldKeyEyeIcon.Image = Properties.Resources.eye;
+ txtOldKey.UseSystemPasswordChar = false;
+ picOldKey.Image = Properties.Resources.eye;
}
else
{
- oldKeyTextBox.UseSystemPasswordChar = true;
- oldKeyEyeIcon.Image = Properties.Resources.eye_half;
+ txtOldKey.UseSystemPasswordChar = true;
+ picOldKey.Image = Properties.Resources.eye_half;
}
}
- private void NewKeyEyeIcon_Click(object sender, EventArgs e)
+ private void PicNewKeyEyeIcon_Click(object sender, EventArgs e)
{
- if (newKeyTextBox.UseSystemPasswordChar)
+ if (txtNewKey.UseSystemPasswordChar)
{
- newKeyTextBox.UseSystemPasswordChar = false;
- newKeyEyeIcon.Image = Properties.Resources.eye;
+ txtNewKey.UseSystemPasswordChar = false;
+ picNewKey.Image = Properties.Resources.eye;
}
else
{
- newKeyTextBox.UseSystemPasswordChar = true;
- newKeyEyeIcon.Image = Properties.Resources.eye_half;
+ txtNewKey.UseSystemPasswordChar = true;
+ picNewKey.Image = Properties.Resources.eye_half;
}
}
- private void OldKeyTextBox_TextChanged(object sender, EventArgs e)
+ private void TxtOldKey_TextChanged(object sender, EventArgs e)
{
- if (oldKeyTextBox.Text.Length > 0 && newKeyTextBox.Text.Length > 0)
+ if (txtOldKey.Text.Length > 0 && txtNewKey.Text.Length > 0)
{
- acceptButton.Enabled = true;
+ btnAccept.Enabled = true;
}
else
{
- acceptButton.Enabled = false;
+ btnAccept.Enabled = false;
}
}
- private void NewKeyTextBox_TextChanged(object sender, EventArgs e)
+ private void TxtNewKey_TextChanged(object sender, EventArgs e)
{
- if (newKeyTextBox.Text.Length > 0 && oldKeyTextBox.Text.Length > 0)
+ if (txtNewKey.Text.Length > 0 && txtOldKey.Text.Length > 0)
{
- acceptButton.Enabled = true;
+ btnAccept.Enabled = true;
}
else
{
- acceptButton.Enabled = false;
+ btnAccept.Enabled = false;
}
}
/*Enter keys area*/
diff --git a/Crypto Notepad/EnterKeyForm.Designer.cs b/Crypto Notepad/EnterKeyForm.Designer.cs
index 0002601..158c59e 100644
--- a/Crypto Notepad/EnterKeyForm.Designer.cs
+++ b/Crypto Notepad/EnterKeyForm.Designer.cs
@@ -29,92 +29,92 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EnterKeyForm));
- this.keyTextBox = new System.Windows.Forms.TextBox();
- this.okButton = new System.Windows.Forms.Button();
- this.keyEyeIcon = new System.Windows.Forms.PictureBox();
- this.mainPanel = new System.Windows.Forms.Panel();
- this.lockIcon = new System.Windows.Forms.PictureBox();
- this.fileNameLabel = new System.Windows.Forms.Label();
- ((System.ComponentModel.ISupportInitialize)(this.keyEyeIcon)).BeginInit();
- this.mainPanel.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.lockIcon)).BeginInit();
+ 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.SuspendLayout();
//
- // keyTextBox
+ // txtKey
//
- this.keyTextBox.Location = new System.Drawing.Point(64, 39);
- this.keyTextBox.Name = "keyTextBox";
- this.keyTextBox.Size = new System.Drawing.Size(177, 20);
- 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);
+ 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);
//
- // okButton
+ // btnOk
//
- this.okButton.Enabled = false;
- this.okButton.Location = new System.Drawing.Point(190, 79);
- 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);
+ 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);
//
- // keyEyeIcon
+ // picShowKey
//
- this.keyEyeIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.keyEyeIcon.Cursor = System.Windows.Forms.Cursors.Hand;
- this.keyEyeIcon.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.keyEyeIcon.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half;
- this.keyEyeIcon.Location = new System.Drawing.Point(247, 39);
- this.keyEyeIcon.Name = "keyEyeIcon";
- this.keyEyeIcon.Size = new System.Drawing.Size(18, 20);
- this.keyEyeIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.keyEyeIcon.TabIndex = 3;
- this.keyEyeIcon.TabStop = false;
- this.keyEyeIcon.Click += new System.EventHandler(this.KeyEyeIcon_Click);
+ 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);
//
- // mainPanel
+ // pnlMain
//
- this.mainPanel.BackColor = System.Drawing.Color.White;
- this.mainPanel.Controls.Add(this.lockIcon);
- this.mainPanel.Controls.Add(this.fileNameLabel);
- this.mainPanel.Controls.Add(this.keyTextBox);
- this.mainPanel.Controls.Add(this.keyEyeIcon);
- this.mainPanel.Location = new System.Drawing.Point(0, 0);
- this.mainPanel.Name = "mainPanel";
- this.mainPanel.Size = new System.Drawing.Size(269, 73);
- this.mainPanel.TabIndex = 5;
+ 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;
//
- // lockIcon
+ // picLock
//
- this.lockIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.lockIcon.Image = global::Crypto_Notepad.Properties.Resources.big_lock;
- this.lockIcon.Location = new System.Drawing.Point(8, 12);
- this.lockIcon.Name = "lockIcon";
- this.lockIcon.Size = new System.Drawing.Size(47, 47);
- this.lockIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.lockIcon.TabIndex = 6;
- this.lockIcon.TabStop = false;
+ 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;
//
- // fileNameLabel
+ // lblFileName
//
- 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 = "Enter the encryption key:";
- this.fileNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ 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;
//
// 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.mainPanel);
- this.Controls.Add(this.okButton);
+ this.Controls.Add(this.pnlMain);
+ this.Controls.Add(this.btnOk);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
@@ -124,20 +124,21 @@ private void InitializeComponent()
this.Text = "Crypto Notepad";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.EnterKeyForm_FormClosed);
this.Load += new System.EventHandler(this.EnterKeyForm_Load);
- ((System.ComponentModel.ISupportInitialize)(this.keyEyeIcon)).EndInit();
- this.mainPanel.ResumeLayout(false);
- this.mainPanel.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.lockIcon)).EndInit();
+ 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.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Button okButton;
- private System.Windows.Forms.PictureBox keyEyeIcon;
- private System.Windows.Forms.Panel mainPanel;
- private System.Windows.Forms.Label fileNameLabel;
- private System.Windows.Forms.PictureBox lockIcon;
- public System.Windows.Forms.TextBox keyTextBox;
+ 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;
}
}
\ No newline at end of file
diff --git a/Crypto Notepad/EnterKeyForm.cs b/Crypto Notepad/EnterKeyForm.cs
index 5fd9bec..9ae5ef8 100644
--- a/Crypto Notepad/EnterKeyForm.cs
+++ b/Crypto Notepad/EnterKeyForm.cs
@@ -7,7 +7,6 @@ public partial class EnterKeyForm : Form
{
public EnterKeyForm()
{
- // Initialize to false in case user presses the exit button
PublicVar.okPressed = false;
InitializeComponent();
}
@@ -16,58 +15,65 @@ public EnterKeyForm()
private void EnterKeyForm_FormClosed(object sender, FormClosedEventArgs e)
{
MainForm main = Owner as MainForm;
- keyTextBox.Focus();
if (main.Visible == false)
{
- Application.Exit();
+ Environment.Exit(0);
}
+ txtKey.Focus();
}
private void EnterKeyForm_Load(object sender, EventArgs e)
{
- fileNameLabel.Text = PublicVar.openFileName;
+ lblFileName.Text = PublicVar.openFileName;
+ Properties.Settings settings = Properties.Settings.Default;
+ TopMost = settings.alwaysOnTop;
+ }
+
+ private void EnterKeyForm_Shown(object sender, EventArgs e)
+ {
+ lblFileName.Text = PublicVar.openFileName;
}
/*Form Events*/
/*Enter key area*/
- private void KeyTextBox_TextChanged(object sender, EventArgs e)
+ private void TxtKey_TextChanged(object sender, EventArgs e)
{
- if (keyTextBox.Text.Length > 0)
- okButton.Enabled = true;
+ if (txtKey.Text.Length > 0)
+ btnOk.Enabled = true;
else
- okButton.Enabled = false;
+ btnOk.Enabled = false;
}
- private void KeyTextBox_KeyDown(object sender, KeyEventArgs e)
+ private void TxtKey_KeyDown(object sender, KeyEventArgs e)
{
- if (e.KeyCode == Keys.Enter && okButton.Enabled)
+ if (e.KeyCode == Keys.Enter && btnOk.Enabled)
{
- OkButton_Click(sender, e);
+ BtnOk_Click(sender, e);
}
}
private void KeyEyeIcon_Click(object sender, EventArgs e)
{
- if (keyTextBox.UseSystemPasswordChar)
+ if (txtKey.UseSystemPasswordChar)
{
- keyTextBox.UseSystemPasswordChar = false;
- keyEyeIcon.Image = Properties.Resources.eye;
+ txtKey.UseSystemPasswordChar = false;
+ picShowKey.Image = Properties.Resources.eye;
}
else
{
- keyTextBox.UseSystemPasswordChar = true;
- keyEyeIcon.Image = Properties.Resources.eye_half;
+ txtKey.UseSystemPasswordChar = true;
+ picShowKey.Image = Properties.Resources.eye_half;
}
}
/*Enter key area*/
/*Buttons*/
- private void OkButton_Click(object sender, EventArgs e)
+ private void BtnOk_Click(object sender, EventArgs e)
{
- TypedPassword.Value = keyTextBox.Text;
- keyTextBox.Focus();
+ TypedPassword.Value = txtKey.Text;
+ txtKey.Focus();
PublicVar.okPressed = true;
Hide();
}
diff --git a/Crypto Notepad/SettingsForm.Designer.cs b/Crypto Notepad/SettingsForm.Designer.cs
index b4f7ac8..520000b 100644
--- a/Crypto Notepad/SettingsForm.Designer.cs
+++ b/Crypto Notepad/SettingsForm.Designer.cs
@@ -29,36 +29,38 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsForm));
- this.editorFontColorLabel = new System.Windows.Forms.Label();
+ this.lblEditorFontColor = 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.linksComboBox = new System.Windows.Forms.ComboBox();
- this.linksLabel = new System.Windows.Forms.Label();
- this.FontButton = new System.Windows.Forms.Button();
- this.paddingLeftTextBox = new System.Windows.Forms.TextBox();
- this.paddingLeftLabel = new System.Windows.Forms.Label();
- this.insKeyComboBox = new System.Windows.Forms.ComboBox();
- this.editorBGColorLabel = new System.Windows.Forms.Label();
- this.insKeyLabel = new System.Windows.Forms.Label();
- this.editorBGColor = new System.Windows.Forms.Panel();
- this.editorFontColor = new System.Windows.Forms.Panel();
+ 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.applicationTabPage = new System.Windows.Forms.TabPage();
- this.mainMenuCheckBox = new System.Windows.Forms.CheckBox();
- this.menuIconsCheckBox = new System.Windows.Forms.CheckBox();
- this.updatesCheckBox = new System.Windows.Forms.CheckBox();
- this.autoLockCheckBox = new System.Windows.Forms.CheckBox();
+ 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.integrationTabPage = new System.Windows.Forms.TabPage();
- this.integrateCheckBox = new System.Windows.Forms.CheckBox();
- this.associateCheckBox = new System.Windows.Forms.CheckBox();
- this.sendToCheckBox = new System.Windows.Forms.CheckBox();
+ this.chkIntegrate = new System.Windows.Forms.CheckBox();
+ this.chkAssociate = new System.Windows.Forms.CheckBox();
+ this.chkSendTo = new System.Windows.Forms.CheckBox();
this.encryptionTabPage = new System.Windows.Forms.TabPage();
- this.pwdIterationsTextBox = new System.Windows.Forms.TextBox();
- this.hashComboBox = new System.Windows.Forms.ComboBox();
- this.pwdIterationsLabel = new System.Windows.Forms.Label();
- this.keySizeLabel = new System.Windows.Forms.Label();
- this.hashLabel = new System.Windows.Forms.Label();
- this.keySizeComboBox = new System.Windows.Forms.ComboBox();
+ 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.lineNumbersTabPage = new System.Windows.Forms.TabPage();
this.MLGroupBox = new System.Windows.Forms.GroupBox();
this.MLStyleComboBox = new System.Windows.Forms.ComboBox();
@@ -107,7 +109,7 @@ private void InitializeComponent()
this.searchBackColor = new System.Windows.Forms.Panel();
this.searchFontColorLabel = new System.Windows.Forms.Label();
this.searchBackColorLabel = new System.Windows.Forms.Label();
- this.settingsNav = new System.Windows.Forms.ListBox();
+ this.lstSettingsNav = new System.Windows.Forms.ListBox();
this.fontDialog = new System.Windows.Forms.FontDialog();
this.settingsTabControl.SuspendLayout();
this.editorTabPage.SuspendLayout();
@@ -124,14 +126,14 @@ private void InitializeComponent()
this.searchPanelTabPage.SuspendLayout();
this.SuspendLayout();
//
- // editorFontColorLabel
+ // lblEditorFontColor
//
- 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;
+ 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;
//
// colorDialog
//
@@ -162,17 +164,17 @@ 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.linksComboBox);
- this.editorTabPage.Controls.Add(this.linksLabel);
- this.editorTabPage.Controls.Add(this.FontButton);
- this.editorTabPage.Controls.Add(this.paddingLeftTextBox);
- this.editorTabPage.Controls.Add(this.paddingLeftLabel);
- this.editorTabPage.Controls.Add(this.insKeyComboBox);
- this.editorTabPage.Controls.Add(this.editorBGColorLabel);
- this.editorTabPage.Controls.Add(this.insKeyLabel);
- this.editorTabPage.Controls.Add(this.editorBGColor);
- this.editorTabPage.Controls.Add(this.editorFontColorLabel);
- this.editorTabPage.Controls.Add(this.editorFontColor);
+ 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.Location = new System.Drawing.Point(4, 44);
this.editorTabPage.Name = "editorTabPage";
this.editorTabPage.Padding = new System.Windows.Forms.Padding(3);
@@ -180,120 +182,122 @@ private void InitializeComponent()
this.editorTabPage.TabIndex = 0;
this.editorTabPage.Text = "edt";
//
- // linksComboBox
+ // cbxOpenLinks
//
- this.linksComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.linksComboBox.FormattingEnabled = true;
- this.linksComboBox.Items.AddRange(new object[] {
+ this.cbxOpenLinks.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cbxOpenLinks.FormattingEnabled = true;
+ this.cbxOpenLinks.Items.AddRange(new object[] {
"LMB Click",
"Shift+LMB",
"Control+LMB"});
- this.linksComboBox.Location = new System.Drawing.Point(132, 113);
- this.linksComboBox.Name = "linksComboBox";
- this.linksComboBox.Size = new System.Drawing.Size(100, 23);
- this.linksComboBox.TabIndex = 19;
- this.linksComboBox.DropDownClosed += new System.EventHandler(this.LinksComboBox_DropDownClosed);
+ 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);
//
- // linksLabel
+ // lblOpenLinks
//
- this.linksLabel.AutoSize = true;
- this.linksLabel.Location = new System.Drawing.Point(6, 116);
- this.linksLabel.Name = "linksLabel";
- this.linksLabel.Size = new System.Drawing.Size(90, 15);
- this.linksLabel.TabIndex = 18;
- this.linksLabel.Text = "Open links with";
+ 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";
//
- // FontButton
+ // btnFont
//
- this.FontButton.Location = new System.Drawing.Point(9, 142);
- this.FontButton.Name = "FontButton";
- this.FontButton.Size = new System.Drawing.Size(223, 23);
- this.FontButton.TabIndex = 17;
- this.FontButton.Text = "Font";
- this.FontButton.UseVisualStyleBackColor = true;
- this.FontButton.Click += new System.EventHandler(this.FontButton_Click);
+ 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);
//
- // paddingLeftTextBox
+ // txtPaddingLeft
//
- this.paddingLeftTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.paddingLeftTextBox.Location = new System.Drawing.Point(132, 87);
- this.paddingLeftTextBox.Name = "paddingLeftTextBox";
- this.paddingLeftTextBox.Size = new System.Drawing.Size(100, 20);
- this.paddingLeftTextBox.TabIndex = 16;
- this.paddingLeftTextBox.Click += new System.EventHandler(this.PaddingLeftTextBox_Click);
- this.paddingLeftTextBox.TextChanged += new System.EventHandler(this.PaddingLeftTextBox_TextChanged);
- this.paddingLeftTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PaddingLeftTextBox_KeyPress);
+ 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);
//
- // paddingLeftLabel
+ // lblPaddingLeft
//
- this.paddingLeftLabel.AutoSize = true;
- this.paddingLeftLabel.Location = new System.Drawing.Point(6, 88);
- this.paddingLeftLabel.Name = "paddingLeftLabel";
- this.paddingLeftLabel.Size = new System.Drawing.Size(73, 15);
- this.paddingLeftLabel.TabIndex = 15;
- this.paddingLeftLabel.Text = "Padding-left";
+ 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";
//
- // insKeyComboBox
+ // cbxInsKey
//
- this.insKeyComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.insKeyComboBox.FormattingEnabled = true;
- this.insKeyComboBox.Items.AddRange(new object[] {
+ this.cbxInsKey.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cbxInsKey.FormattingEnabled = true;
+ this.cbxInsKey.Items.AddRange(new object[] {
"Enable",
"Disable"});
- this.insKeyComboBox.Location = new System.Drawing.Point(132, 58);
- this.insKeyComboBox.Name = "insKeyComboBox";
- this.insKeyComboBox.Size = new System.Drawing.Size(100, 23);
- this.insKeyComboBox.TabIndex = 14;
- this.insKeyComboBox.DropDownClosed += new System.EventHandler(this.InsKeyComboBox_DropDownClosed);
+ 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);
//
- // editorBGColorLabel
+ // lblEditorBackColor
//
- this.editorBGColorLabel.Location = new System.Drawing.Point(6, 31);
- this.editorBGColorLabel.Name = "editorBGColorLabel";
- this.editorBGColorLabel.Size = new System.Drawing.Size(103, 21);
- this.editorBGColorLabel.TabIndex = 10;
- this.editorBGColorLabel.Text = "Background color";
- this.editorBGColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ 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;
//
- // insKeyLabel
+ // lblInsKey
//
- this.insKeyLabel.AutoSize = true;
- this.insKeyLabel.Location = new System.Drawing.Point(6, 61);
- this.insKeyLabel.Name = "insKeyLabel";
- this.insKeyLabel.Size = new System.Drawing.Size(58, 15);
- this.insKeyLabel.TabIndex = 13;
- this.insKeyLabel.Text = "Insert key";
+ 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";
//
- // editorBGColor
+ // pnlEditorBackColor
//
- this.editorBGColor.BackColor = System.Drawing.SystemColors.Control;
- this.editorBGColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.editorBGColor.Cursor = System.Windows.Forms.Cursors.Hand;
- this.editorBGColor.Location = new System.Drawing.Point(132, 31);
- this.editorBGColor.Name = "editorBGColor";
- this.editorBGColor.Size = new System.Drawing.Size(100, 21);
- this.editorBGColor.TabIndex = 8;
- this.editorBGColor.Click += new System.EventHandler(this.EditorBGColor_Click);
+ 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);
//
- // editorFontColor
+ // pnlEditorFontColor
//
- 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);
+ 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);
//
// applicationTabPage
//
this.applicationTabPage.BackColor = System.Drawing.SystemColors.Window;
this.applicationTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.applicationTabPage.Controls.Add(this.mainMenuCheckBox);
- this.applicationTabPage.Controls.Add(this.menuIconsCheckBox);
- this.applicationTabPage.Controls.Add(this.updatesCheckBox);
- this.applicationTabPage.Controls.Add(this.autoLockCheckBox);
+ 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.Location = new System.Drawing.Point(4, 44);
this.applicationTabPage.Name = "applicationTabPage";
this.applicationTabPage.Padding = new System.Windows.Forms.Padding(3);
@@ -301,57 +305,79 @@ private void InitializeComponent()
this.applicationTabPage.TabIndex = 2;
this.applicationTabPage.Text = "app";
//
- // mainMenuCheckBox
+ // chkCloseToTray
//
- this.mainMenuCheckBox.AutoSize = true;
- this.mainMenuCheckBox.Location = new System.Drawing.Point(7, 55);
- this.mainMenuCheckBox.Name = "mainMenuCheckBox";
- this.mainMenuCheckBox.Size = new System.Drawing.Size(89, 19);
- this.mainMenuCheckBox.TabIndex = 8;
- this.mainMenuCheckBox.Text = "Main menu";
- this.mainMenuCheckBox.UseVisualStyleBackColor = true;
- this.mainMenuCheckBox.Click += new System.EventHandler(this.MainMenuCheckBox_Click);
+ 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);
//
- // menuIconsCheckBox
+ // chkMinimizeToTray
//
- this.menuIconsCheckBox.AutoSize = true;
- this.menuIconsCheckBox.Location = new System.Drawing.Point(7, 80);
- this.menuIconsCheckBox.Name = "menuIconsCheckBox";
- this.menuIconsCheckBox.Size = new System.Drawing.Size(90, 19);
- this.menuIconsCheckBox.TabIndex = 7;
- this.menuIconsCheckBox.Text = "Menu icons";
- this.menuIconsCheckBox.UseVisualStyleBackColor = true;
- this.menuIconsCheckBox.Click += new System.EventHandler(this.MenuIconsCheckBox_Click);
+ 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);
//
- // updatesCheckBox
+ // chkMainMenu
//
- this.updatesCheckBox.AutoSize = true;
- this.updatesCheckBox.Location = new System.Drawing.Point(7, 30);
- this.updatesCheckBox.Name = "updatesCheckBox";
- this.updatesCheckBox.Size = new System.Drawing.Size(132, 19);
- this.updatesCheckBox.TabIndex = 1;
- this.updatesCheckBox.Text = "Auto check updates";
- this.updatesCheckBox.UseVisualStyleBackColor = true;
- this.updatesCheckBox.Click += new System.EventHandler(this.UpdatesCheckBox_Click);
+ 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);
//
- // autoLockCheckBox
+ // chkMenuIcons
//
- this.autoLockCheckBox.AutoSize = true;
- this.autoLockCheckBox.Location = new System.Drawing.Point(7, 7);
- this.autoLockCheckBox.Name = "autoLockCheckBox";
- this.autoLockCheckBox.Size = new System.Drawing.Size(146, 19);
- this.autoLockCheckBox.TabIndex = 3;
- this.autoLockCheckBox.Text = "Auto lock on minimize";
- this.autoLockCheckBox.UseVisualStyleBackColor = true;
- this.autoLockCheckBox.Click += new System.EventHandler(this.AutoLockCheckBox_Click);
+ 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);
+ //
+ // chkUpdates
+ //
+ 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);
+ //
+ // chkAutoLock
+ //
+ 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);
//
// integrationTabPage
//
this.integrationTabPage.BackColor = System.Drawing.SystemColors.Window;
this.integrationTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.integrationTabPage.Controls.Add(this.integrateCheckBox);
- this.integrationTabPage.Controls.Add(this.associateCheckBox);
- this.integrationTabPage.Controls.Add(this.sendToCheckBox);
+ this.integrationTabPage.Controls.Add(this.chkIntegrate);
+ this.integrationTabPage.Controls.Add(this.chkAssociate);
+ this.integrationTabPage.Controls.Add(this.chkSendTo);
this.integrationTabPage.Location = new System.Drawing.Point(4, 44);
this.integrationTabPage.Name = "integrationTabPage";
this.integrationTabPage.Padding = new System.Windows.Forms.Padding(3);
@@ -359,49 +385,49 @@ private void InitializeComponent()
this.integrationTabPage.TabIndex = 3;
this.integrationTabPage.Text = "intgr";
//
- // integrateCheckBox
+ // chkIntegrate
//
- this.integrateCheckBox.AutoSize = true;
- this.integrateCheckBox.Location = new System.Drawing.Point(7, 7);
- this.integrateCheckBox.Name = "integrateCheckBox";
- this.integrateCheckBox.Size = new System.Drawing.Size(227, 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);
+ 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);
//
- // associateCheckBox
+ // chkAssociate
//
- this.associateCheckBox.AutoSize = true;
- this.associateCheckBox.Location = new System.Drawing.Point(7, 30);
- this.associateCheckBox.Name = "associateCheckBox";
- this.associateCheckBox.Size = new System.Drawing.Size(159, 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);
+ 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);
//
- // sendToCheckBox
+ // chkSendTo
//
- this.sendToCheckBox.AutoSize = true;
- this.sendToCheckBox.Location = new System.Drawing.Point(7, 53);
- this.sendToCheckBox.Name = "sendToCheckBox";
- this.sendToCheckBox.Size = new System.Drawing.Size(158, 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);
+ 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);
//
// encryptionTabPage
//
this.encryptionTabPage.BackColor = System.Drawing.SystemColors.Window;
this.encryptionTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.encryptionTabPage.Controls.Add(this.pwdIterationsTextBox);
- this.encryptionTabPage.Controls.Add(this.hashComboBox);
- this.encryptionTabPage.Controls.Add(this.pwdIterationsLabel);
- this.encryptionTabPage.Controls.Add(this.keySizeLabel);
- this.encryptionTabPage.Controls.Add(this.hashLabel);
- this.encryptionTabPage.Controls.Add(this.keySizeComboBox);
+ 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.Location = new System.Drawing.Point(4, 44);
this.encryptionTabPage.Name = "encryptionTabPage";
this.encryptionTabPage.Padding = new System.Windows.Forms.Padding(3);
@@ -409,73 +435,73 @@ private void InitializeComponent()
this.encryptionTabPage.TabIndex = 1;
this.encryptionTabPage.Text = "enc";
//
- // pwdIterationsTextBox
+ // txtPwdIterations
//
- this.pwdIterationsTextBox.Location = new System.Drawing.Point(132, 62);
- this.pwdIterationsTextBox.Name = "pwdIterationsTextBox";
- this.pwdIterationsTextBox.Size = new System.Drawing.Size(100, 21);
- this.pwdIterationsTextBox.TabIndex = 7;
- this.pwdIterationsTextBox.Text = "1000";
- this.pwdIterationsTextBox.TextChanged += new System.EventHandler(this.PwdIterationsTextBox_TextChanged);
- this.pwdIterationsTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PwdIterationsTextBox_KeyPress);
+ 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);
//
- // hashComboBox
+ // cboHash
//
- this.hashComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.hashComboBox.FormattingEnabled = true;
- this.hashComboBox.Items.AddRange(new object[] {
+ this.cboHash.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cboHash.FormattingEnabled = true;
+ this.cboHash.Items.AddRange(new object[] {
"MD5",
"SHA1",
"SHA256",
"SHA384",
"SHA512"});
- this.hashComboBox.Location = new System.Drawing.Point(132, 4);
- this.hashComboBox.Name = "hashComboBox";
- this.hashComboBox.Size = new System.Drawing.Size(100, 23);
- this.hashComboBox.TabIndex = 5;
- this.hashComboBox.DropDownClosed += new System.EventHandler(this.HashComboBox_DropDownClosed);
+ 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);
//
- // pwdIterationsLabel
+ // lblPwdIterations
//
- this.pwdIterationsLabel.AutoSize = true;
- this.pwdIterationsLabel.BackColor = System.Drawing.Color.Transparent;
- this.pwdIterationsLabel.Location = new System.Drawing.Point(6, 65);
- this.pwdIterationsLabel.Name = "pwdIterationsLabel";
- this.pwdIterationsLabel.Size = new System.Drawing.Size(114, 15);
- this.pwdIterationsLabel.TabIndex = 6;
- this.pwdIterationsLabel.Text = "Password iterations";
+ 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";
//
- // keySizeLabel
+ // lblKeySize
//
- this.keySizeLabel.AutoSize = true;
- this.keySizeLabel.Location = new System.Drawing.Point(6, 36);
- this.keySizeLabel.Name = "keySizeLabel";
- this.keySizeLabel.Size = new System.Drawing.Size(52, 15);
- this.keySizeLabel.TabIndex = 1;
- this.keySizeLabel.Text = "Key size";
+ 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";
//
- // hashLabel
+ // lblHash
//
- this.hashLabel.AutoSize = true;
- this.hashLabel.Location = new System.Drawing.Point(6, 7);
- this.hashLabel.Name = "hashLabel";
- this.hashLabel.Size = new System.Drawing.Size(94, 15);
- this.hashLabel.TabIndex = 0;
- this.hashLabel.Text = "Hash algorithm ";
+ 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 ";
//
- // keySizeComboBox
+ // cboKeySize
//
- this.keySizeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.keySizeComboBox.FormattingEnabled = true;
- this.keySizeComboBox.Items.AddRange(new object[] {
+ this.cboKeySize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cboKeySize.FormattingEnabled = true;
+ this.cboKeySize.Items.AddRange(new object[] {
"128",
"192",
"256"});
- 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);
+ 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);
//
// lineNumbersTabPage
//
@@ -1040,12 +1066,12 @@ private void InitializeComponent()
this.searchBackColorLabel.Text = "Background color";
this.searchBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
- // settingsNav
+ // lstSettingsNav
//
- this.settingsNav.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.settingsNav.FormattingEnabled = true;
- this.settingsNav.ItemHeight = 16;
- this.settingsNav.Items.AddRange(new object[] {
+ 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[] {
"Editor",
"Line Numbers",
"Status Panel",
@@ -1054,11 +1080,11 @@ private void InitializeComponent()
"Search Panel",
"Integration",
"Encryption"});
- this.settingsNav.Location = new System.Drawing.Point(3, 3);
- this.settingsNav.Name = "settingsNav";
- this.settingsNav.Size = new System.Drawing.Size(102, 292);
- this.settingsNav.TabIndex = 6;
- this.settingsNav.Click += new System.EventHandler(this.SettingsNav_Click);
+ 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);
//
// fontDialog
//
@@ -1080,7 +1106,7 @@ private void InitializeComponent()
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(356, 299);
this.Controls.Add(this.settingsTabControl);
- this.Controls.Add(this.settingsNav);
+ this.Controls.Add(this.lstSettingsNav);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
@@ -1120,28 +1146,28 @@ private void InitializeComponent()
#endregion
- private System.Windows.Forms.Label editorFontColorLabel;
+ private System.Windows.Forms.Label lblEditorFontColor;
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 associateCheckBox;
- private System.Windows.Forms.CheckBox updatesCheckBox;
- private System.Windows.Forms.Panel editorFontColor;
- private System.Windows.Forms.Panel editorBGColor;
- private System.Windows.Forms.Label editorBGColorLabel;
+ 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.ColorDialog colorDialog;
- private System.Windows.Forms.ComboBox keySizeComboBox;
- private System.Windows.Forms.Label keySizeLabel;
- private System.Windows.Forms.Label hashLabel;
- private System.Windows.Forms.ComboBox hashComboBox;
- private System.Windows.Forms.TextBox pwdIterationsTextBox;
- private System.Windows.Forms.Label pwdIterationsLabel;
+ 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 autoLockCheckBox;
- private System.Windows.Forms.CheckBox sendToCheckBox;
- private System.Windows.Forms.CheckBox integrateCheckBox;
- private System.Windows.Forms.CheckBox menuIconsCheckBox;
+ 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.TabPage integrationTabPage;
private System.Windows.Forms.Label LNFontColorLabel;
private System.Windows.Forms.Label LNBackgroundColor;
@@ -1161,13 +1187,13 @@ private void InitializeComponent()
private System.Windows.Forms.Label GLColorLabel;
private System.Windows.Forms.ComboBox GLShowComboBox;
private System.Windows.Forms.Label GLShowLabel;
- private System.Windows.Forms.ComboBox insKeyComboBox;
- private System.Windows.Forms.Label insKeyLabel;
- private System.Windows.Forms.TextBox paddingLeftTextBox;
- private System.Windows.Forms.Label paddingLeftLabel;
- private System.Windows.Forms.ListBox settingsNav;
+ 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.TabPage lineNumbersTabPage;
- private System.Windows.Forms.Button FontButton;
+ private System.Windows.Forms.Button btnFont;
private System.Windows.Forms.FontDialog fontDialog;
private System.Windows.Forms.TabPage statusPanelTabPage;
private System.Windows.Forms.TabPage toolbarTabPage;
@@ -1184,9 +1210,9 @@ private void InitializeComponent()
private System.Windows.Forms.Panel toolbarBackColor;
private System.Windows.Forms.Label toolbarBackColorLabel;
private System.Windows.Forms.CheckBox toolbarBorder;
- private System.Windows.Forms.ComboBox linksComboBox;
- private System.Windows.Forms.Label linksLabel;
- private System.Windows.Forms.CheckBox mainMenuCheckBox;
+ 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;
@@ -1200,5 +1226,7 @@ private void InitializeComponent()
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;
}
}
\ No newline at end of file
diff --git a/Crypto Notepad/SettingsForm.cs b/Crypto Notepad/SettingsForm.cs
index 11ec88d..358e678 100644
--- a/Crypto Notepad/SettingsForm.cs
+++ b/Crypto Notepad/SettingsForm.cs
@@ -1,4 +1,4 @@
-using IWshRuntimeLibrary;
+using IWshRuntimeLibrary;
using Microsoft.Win32;
using System;
using System.Drawing;
@@ -22,25 +22,27 @@ public SettingsForm()
/*Methods*/
private void LoadSettings()
{
- editorFontColor.BackColor = settings.editroForeColor;
- editorBGColor.BackColor = settings.editorBackColor;
- insKeyComboBox.Text = settings.insKey;
- paddingLeftTextBox.Text = settings.editorPaddingLeft;
- linksComboBox.Text = settings.openLinks;
+ pnlEditorFontColor.BackColor = settings.editroForeColor;
+ pnlEditorBackColor.BackColor = settings.editorBackColor;
+ cbxInsKey.Text = settings.insKey;
+ txtPaddingLeft.Text = settings.editorPaddingLeft;
+ cbxOpenLinks.Text = settings.openLinks;
fontDialog.Font = settings.editorFont;
- autoLockCheckBox.Checked = settings.autoLock;
- updatesCheckBox.Checked = settings.autoCheckUpdate;
- mainMenuCheckBox.Checked = settings.mainMenuVisible;
- menuIconsCheckBox.Checked = settings.menuIcons;
+ chkAutoLock.Checked = settings.autoLock;
+ chkUpdates.Checked = settings.autoCheckUpdate;
+ chkMainMenu.Checked = settings.mainMenuVisible;
+ chkMenuIcons.Checked = settings.menuIcons;
+ chkMinimizeToTray.Checked = settings.minimizeToTray;
+ chkCloseToTray.Checked = settings.closeToTray;
- integrateCheckBox.Checked = settings.explorerIntegrate;
- associateCheckBox.Checked = settings.explorerAssociate;
- sendToCheckBox.Checked = settings.explorerSendTo;
+ chkIntegrate.Checked = settings.explorerIntegrate;
+ chkAssociate.Checked = settings.explorerAssociate;
+ chkSendTo.Checked = settings.explorerSendTo;
- hashComboBox.Text = settings.HashAlgorithm;
- keySizeComboBox.Text = settings.KeySize;
- pwdIterationsTextBox.Text = settings.PasswordIterations;
+ cboHash.Text = settings.HashAlgorithm;
+ cboKeySize.Text = settings.KeySize;
+ txtPwdIterations.Text = settings.PasswordIterations;
searchBackColor.BackColor = settings.searchPanelBackColor;
searchFontColor.BackColor = settings.searchPanelForeColor;
@@ -164,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;
- settingsNav.SelectedIndex = 0;
+ lstSettingsNav.SelectedIndex = 0;
TopMost = settings.alwaysOnTop;
LoadSettings();
}
- private void PaddingLeftTextBox_Click(object sender, EventArgs e)
+ private void TxtPaddingLeft_Click(object sender, EventArgs e)
{
- paddingLeftTextBox.SelectAll();
+ txtPaddingLeft.SelectAll();
}
private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
@@ -183,7 +185,7 @@ private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
{
settings.PasswordIterations = "1";
}
- if (string.IsNullOrWhiteSpace(paddingLeftTextBox.Text))
+ if (string.IsNullOrWhiteSpace(txtPaddingLeft.Text))
{
settings.editorPaddingLeft = "0";
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
@@ -196,7 +198,7 @@ private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
/*Settings Section*/
private void EditorFontColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = editorFontColor.BackColor;
+ colorDialog.Color = pnlEditorFontColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
@@ -205,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;
- editorFontColor.BackColor = colorDialog.Color;
+ pnlEditorFontColor.BackColor = colorDialog.Color;
}
}
}
private void EditorBGColor_Click(object sender, EventArgs e)
{
- colorDialog.Color = editorBGColor.BackColor;
+ colorDialog.Color = pnlEditorBackColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
@@ -220,7 +222,7 @@ private void EditorBGColor_Click(object sender, EventArgs e)
main.richTextBox.BackColor = colorDialog.Color;
main.BackColor = colorDialog.Color;
settings.editorBackColor = colorDialog.Color;
- editorBGColor.BackColor = colorDialog.Color;
+ pnlEditorBackColor.BackColor = colorDialog.Color;
}
}
}
@@ -285,9 +287,9 @@ private void GLColor_Click(object sender, EventArgs e)
}
}
- private void SettingsNav_Click(object sender, EventArgs e)
+ private void LstSettingsNav_Click(object sender, EventArgs e)
{
- switch (settingsNav.SelectedIndex)
+ switch (lstSettingsNav.SelectedIndex)
{
case 0:
settingsTabControl.SelectedTab = editorTabPage;
@@ -314,6 +316,8 @@ private void SettingsNav_Click(object sender, EventArgs e)
settingsTabControl.SelectedTab = encryptionTabPage;
break;
}
+
+
}
private void SettingsTabControl_SelectedIndexChanged(object sender, EventArgs e)
@@ -332,7 +336,7 @@ private void ToolbarVisible_Click(object sender, EventArgs e)
private void AssociateCheckBox_Click(object sender, EventArgs e)
{
- if (associateCheckBox.Checked)
+ if (chkAssociate.Checked)
{
AssociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
}
@@ -340,13 +344,13 @@ private void AssociateCheckBox_Click(object sender, EventArgs e)
{
DissociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
}
- settings.explorerAssociate = associateCheckBox.Checked;
+ settings.explorerAssociate = chkAssociate.Checked;
}
private void IntegrateCheckBox_Click(object sender, EventArgs e)
{
- if (integrateCheckBox.Checked)
+ if (chkIntegrate.Checked)
{
MenuIntegrate("enable");
}
@@ -354,26 +358,26 @@ private void IntegrateCheckBox_Click(object sender, EventArgs e)
{
MenuIntegrate("disable");
}
- settings.explorerIntegrate = integrateCheckBox.Checked;
+ settings.explorerIntegrate = chkIntegrate.Checked;
}
- private void PaddingLeftTextBox_TextChanged(object sender, EventArgs e)
+ private void TxtPaddingLeft_TextChanged(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (paddingLeftTextBox.Text.Length >= 1)
+ if (txtPaddingLeft.Text.Length >= 1)
{
- if (settings.editorPaddingLeft != paddingLeftTextBox.Text)
+ if (settings.editorPaddingLeft != txtPaddingLeft.Text)
{
- main.richTextBox.SetInnerMargins(Convert.ToInt32(paddingLeftTextBox.Text), 0, 0, 0);
+ main.richTextBox.SetInnerMargins(Convert.ToInt32(txtPaddingLeft.Text), 0, 0, 0);
main.richTextBox.Refresh();
- settings.editorPaddingLeft = paddingLeftTextBox.Text;
+ settings.editorPaddingLeft = txtPaddingLeft.Text;
}
}
}
private void SendToCheckBox_Click(object sender, EventArgs e)
{
- if (sendToCheckBox.Checked)
+ if (chkSendTo.Checked)
{
SendToShortcut();
}
@@ -385,16 +389,16 @@ private void SendToCheckBox_Click(object sender, EventArgs e)
System.IO.File.Delete(shortcutPath);
}
}
- settings.explorerSendTo = sendToCheckBox.Checked;
+ settings.explorerSendTo = chkSendTo.Checked;
}
private void InsKeyComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (settings.insKey != insKeyComboBox.Text)
+ if (settings.insKey != cbxInsKey.Text)
{
- if (insKeyComboBox.Text == "Disable")
+ if (cbxInsKey.Text == "Disable")
{
main.insMainMenu.ShortcutKeys = Keys.Insert;
}
@@ -402,18 +406,18 @@ private void InsKeyComboBox_DropDownClosed(object sender, EventArgs e)
{
main.insMainMenu.ShortcutKeys = Keys.None;
}
- settings.insKey = insKeyComboBox.Text;
+ settings.insKey = cbxInsKey.Text;
}
}
private void MenuIconsCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- settings.menuIcons = menuIconsCheckBox.Checked;
+ settings.menuIcons = chkMenuIcons.Checked;
main.MenuIcons(settings.menuIcons);
}
- private void FontButton_Click(object sender, EventArgs e)
+ private void BtnFont_Click(object sender, EventArgs e)
{
using (new CenterWinDialog(this))
{
@@ -515,21 +519,21 @@ private void GLStyleComboBox_DropDownClosed(object sender, EventArgs e)
private void KeySizeComboBox_DropDownClosed(object sender, EventArgs e)
{
- if (keySizeComboBox.Text != settings.KeySize)
+ if (cboKeySize.Text != settings.KeySize)
{
- settings.KeySize = keySizeComboBox.Text;
+ settings.KeySize = cboKeySize.Text;
}
}
private void HashComboBox_DropDownClosed(object sender, EventArgs e)
{
- if (hashComboBox.Text != settings.HashAlgorithm)
+ if (cboHash.Text != settings.HashAlgorithm)
{
- settings.HashAlgorithm = hashComboBox.Text;
+ settings.HashAlgorithm = cboHash.Text;
}
}
- private void PaddingLeftTextBox_KeyPress(object sender, KeyPressEventArgs e)
+ private void TxtPaddingLeft_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar))
{
@@ -558,7 +562,7 @@ private void StatusPanelVisible_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.statusPanel.Visible = statusPanelVisible.Checked;
- main.richTextBox.SetInnerMargins(Convert.ToInt32(paddingLeftTextBox.Text), 0, 0, 0);
+ main.richTextBox.SetInnerMargins(Convert.ToInt32(txtPaddingLeft.Text), 0, 0, 0);
settings.statusPanelVisible = statusPanelVisible.Checked;
}
@@ -659,7 +663,7 @@ private void SearchFontColor_Click(object sender, EventArgs e)
private void MainMenuCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
- if (mainMenuCheckBox.Checked)
+ if (chkMainMenu.Checked)
{
main.mainMenu.Visible = true;
}
@@ -667,7 +671,7 @@ private void MainMenuCheckBox_Click(object sender, EventArgs e)
{
main.mainMenu.Visible = false;
}
- settings.mainMenuVisible = mainMenuCheckBox.Checked;
+ settings.mainMenuVisible = chkMainMenu.Checked;
}
private void ToolbarOldIcons_Click(object sender, EventArgs e)
@@ -677,31 +681,31 @@ private void ToolbarOldIcons_Click(object sender, EventArgs e)
main.Toolbaricons(settings.oldToolbarIcons);
}
- private void LinksComboBox_DropDownClosed(object sender, EventArgs e)
+ private void CbxOpenLinks_DropDownClosed(object sender, EventArgs e)
{
- if (settings.openLinks != linksComboBox.Text)
+ if (settings.openLinks != cbxOpenLinks.Text)
{
- settings.openLinks = linksComboBox.Text;
+ settings.openLinks = cbxOpenLinks.Text;
}
}
private void AutoLockCheckBox_Click(object sender, EventArgs e)
{
- settings.autoLock = autoLockCheckBox.Checked;
+ settings.autoLock = chkAutoLock.Checked;
}
private void UpdatesCheckBox_Click(object sender, EventArgs e)
{
- settings.autoCheckUpdate = updatesCheckBox.Checked;
+ settings.autoCheckUpdate = chkUpdates.Checked;
}
private void PwdIterationsTextBox_TextChanged(object sender, EventArgs e)
{
- if (pwdIterationsTextBox.Text != settings.PasswordIterations)
+ if (txtPwdIterations.Text != settings.PasswordIterations)
{
- settings.PasswordIterations = pwdIterationsTextBox.Text;
+ settings.PasswordIterations = txtPwdIterations.Text;
}
}
@@ -780,6 +784,34 @@ private void MLColor_Click(object sender, EventArgs e)
}
}
}
+
+ private void ChkMinimizeToTray_Click(object sender, EventArgs e)
+ {
+ MainForm main = Owner as MainForm;
+ if (chkCloseToTray.Checked == false & chkMinimizeToTray.Checked == false)
+ {
+ main.trayIcon.Visible = false;
+ }
+ if (chkMinimizeToTray.Checked == true)
+ {
+ main.trayIcon.Visible = true;
+ }
+ settings.minimizeToTray = chkMinimizeToTray.Checked;
+ }
+
+ private void ChkCloseToTray_Click(object sender, EventArgs e)
+ {
+ MainForm main = Owner as MainForm;
+ if (chkCloseToTray.Checked == false & chkMinimizeToTray.Checked ==false )
+ {
+ main.trayIcon.Visible = false;
+ }
+ if (chkCloseToTray.Checked == true)
+ {
+ main.trayIcon.Visible = true;
+ }
+ settings.closeToTray = chkCloseToTray.Checked;
+ }
/*Settings Section*/