Resolving class naming inconsistencies

This commit is contained in:
Alexander 2019-09-28 22:57:03 +03:00
parent d7279c111b
commit 0102a3efb9
14 changed files with 8144 additions and 1949 deletions

View file

@ -21,14 +21,14 @@ class AESMetadata
public AESMetadata() public AESMetadata()
{ {
this.InitialVector = new byte[16]; InitialVector = new byte[16];
this.Salt = null; Salt = null;
} }
public void DeleteMetadataFromBuffer(ref byte[] rawData) public void DeleteMetadataFromBuffer(ref byte[] rawData)
{ {
byte[] buffer = new byte[rawData.Length - this.OffsetToData]; byte[] buffer = new byte[rawData.Length - OffsetToData];
Buffer.BlockCopy(rawData, this.OffsetToData, buffer, 0, rawData.Length - this.OffsetToData); Buffer.BlockCopy(rawData, OffsetToData, buffer, 0, rawData.Length - OffsetToData);
rawData = buffer; rawData = buffer;
} }
@ -67,15 +67,15 @@ public bool GetMetadata(byte[] rawData)
int offset = 0; int offset = 0;
byte[] buffer = null; byte[] buffer = null;
if (!this.ReadData(rawData, 0, ref buffer)) { return false; } if (!ReadData(rawData, 0, ref buffer)) { return false; }
this.InitialVector = buffer; InitialVector = buffer;
offset += buffer.Length + 1; offset += buffer.Length + 1;
if (!this.ReadData(rawData, offset, ref buffer)) { return false; } if (!ReadData(rawData, offset, ref buffer)) { return false; }
this.Salt = buffer; Salt = buffer;
offset += buffer.Length + 1; offset += buffer.Length + 1;
this.OffsetToData = offset; OffsetToData = offset;
return true; return true;
} }
@ -167,6 +167,7 @@ public static string Encrypt(string plainText, string password,
cipherTextBytes = memStream.ToArray(); cipherTextBytes = memStream.ToArray();
memStream.Close(); memStream.Close();
cryptoStream.Close(); cryptoStream.Close();
} }
} }
} }

View file

@ -29,181 +29,181 @@ protected override void Dispose(bool disposing)
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutFrom)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutFrom));
this.AppVersionLabel = new System.Windows.Forms.Label(); this.appVersionLabel = new System.Windows.Forms.Label();
this.AppLogoPictureBox = new System.Windows.Forms.PictureBox(); this.appLogo = new System.Windows.Forms.PictureBox();
this.TPDLabel = new System.Windows.Forms.Label(); this.thirdPartyDevLabel = new System.Windows.Forms.Label();
this.AuthorLinkLabel = new System.Windows.Forms.LinkLabel(); this.authorLabel = new System.Windows.Forms.LinkLabel();
this.LicenseLinkLabel = new System.Windows.Forms.LinkLabel(); this.licenseLabel = new System.Windows.Forms.LinkLabel();
this.GithubLinkLabel = new System.Windows.Forms.LinkLabel(); this.githubLabel = new System.Windows.Forms.LinkLabel();
this.ContributorsLabel = new System.Windows.Forms.Label(); this.contributorsLabel = new System.Windows.Forms.Label();
this.ContributorsRichTextBox = new Crypto_Notepad.ExRichTextBox(); this.contributorsList = new Crypto_Notepad.ExRichTextBox();
this.TPDRichTextBox = new Crypto_Notepad.ExRichTextBox(); this.thirdPartyDevList = new Crypto_Notepad.ExRichTextBox();
((System.ComponentModel.ISupportInitialize)(this.AppLogoPictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.appLogo)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// AppVersionLabel // appVersionLabel
// //
this.AppVersionLabel.AutoSize = true; this.appVersionLabel.AutoSize = true;
this.AppVersionLabel.Cursor = System.Windows.Forms.Cursors.Hand; 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.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.Color.White; this.appVersionLabel.ForeColor = System.Drawing.SystemColors.Highlight;
this.AppVersionLabel.Location = new System.Drawing.Point(5, 6); this.appVersionLabel.Location = new System.Drawing.Point(5, 9);
this.AppVersionLabel.Name = "AppVersionLabel"; this.appVersionLabel.Name = "appVersionLabel";
this.AppVersionLabel.Size = new System.Drawing.Size(220, 22); this.appVersionLabel.Size = new System.Drawing.Size(220, 22);
this.AppVersionLabel.TabIndex = 0; this.appVersionLabel.TabIndex = 0;
this.AppVersionLabel.Text = "Crypto Notepad v1.0.0"; this.appVersionLabel.Text = "Crypto Notepad v1.0.0";
this.AppVersionLabel.Click += new System.EventHandler(this.AppVersionLabel_Click); this.appVersionLabel.Click += new System.EventHandler(this.AppVersionLabel_Click);
// //
// AppLogoPictureBox // appLogo
// //
this.AppLogoPictureBox.Cursor = System.Windows.Forms.Cursors.Hand; this.appLogo.Cursor = System.Windows.Forms.Cursors.Hand;
this.AppLogoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("AppLogoPictureBox.Image"))); this.appLogo.Image = ((System.Drawing.Image)(resources.GetObject("appLogo.Image")));
this.AppLogoPictureBox.Location = new System.Drawing.Point(320, 2); this.appLogo.Location = new System.Drawing.Point(341, 2);
this.AppLogoPictureBox.Name = "AppLogoPictureBox"; this.appLogo.Name = "appLogo";
this.AppLogoPictureBox.Size = new System.Drawing.Size(77, 68); this.appLogo.Size = new System.Drawing.Size(77, 68);
this.AppLogoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.appLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.AppLogoPictureBox.TabIndex = 1; this.appLogo.TabIndex = 1;
this.AppLogoPictureBox.TabStop = false; this.appLogo.TabStop = false;
this.AppLogoPictureBox.Click += new System.EventHandler(this.AppLogoPictureBox_Click); this.appLogo.Click += new System.EventHandler(this.AppLogo_Click);
// //
// TPDLabel // thirdPartyDevLabel
// //
this.TPDLabel.AutoSize = true; this.thirdPartyDevLabel.AutoSize = true;
this.TPDLabel.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.thirdPartyDevLabel.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.TPDLabel.ForeColor = System.Drawing.Color.White; this.thirdPartyDevLabel.ForeColor = System.Drawing.SystemColors.Highlight;
this.TPDLabel.Location = new System.Drawing.Point(6, 160); this.thirdPartyDevLabel.Location = new System.Drawing.Point(5, 158);
this.TPDLabel.Name = "TPDLabel"; this.thirdPartyDevLabel.Name = "thirdPartyDevLabel";
this.TPDLabel.Size = new System.Drawing.Size(200, 18); this.thirdPartyDevLabel.Size = new System.Drawing.Size(200, 18);
this.TPDLabel.TabIndex = 4; this.thirdPartyDevLabel.TabIndex = 4;
this.TPDLabel.Text = "Third-party developments"; this.thirdPartyDevLabel.Text = "Third-party developments";
// //
// AuthorLinkLabel // authorLabel
// //
this.AuthorLinkLabel.ActiveLinkColor = System.Drawing.Color.White; this.authorLabel.ActiveLinkColor = System.Drawing.Color.White;
this.AuthorLinkLabel.AutoSize = true; this.authorLabel.AutoSize = true;
this.AuthorLinkLabel.DisabledLinkColor = System.Drawing.Color.White; this.authorLabel.DisabledLinkColor = System.Drawing.Color.White;
this.AuthorLinkLabel.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.authorLabel.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.AuthorLinkLabel.ForeColor = System.Drawing.Color.White; this.authorLabel.ForeColor = System.Drawing.SystemColors.Control;
this.AuthorLinkLabel.LinkArea = new System.Windows.Forms.LinkArea(38, 8); this.authorLabel.LinkArea = new System.Windows.Forms.LinkArea(38, 8);
this.AuthorLinkLabel.LinkColor = System.Drawing.Color.White; this.authorLabel.LinkColor = System.Drawing.Color.White;
this.AuthorLinkLabel.Location = new System.Drawing.Point(9, 39); this.authorLabel.Location = new System.Drawing.Point(8, 38);
this.AuthorLinkLabel.Name = "AuthorLinkLabel"; this.authorLabel.Name = "authorLabel";
this.AuthorLinkLabel.Size = new System.Drawing.Size(291, 18); this.authorLabel.Size = new System.Drawing.Size(317, 19);
this.AuthorLinkLabel.TabIndex = 9; this.authorLabel.TabIndex = 9;
this.AuthorLinkLabel.TabStop = true; this.authorLabel.TabStop = true;
this.AuthorLinkLabel.Text = "This is an open-source app created by Sigmanor"; this.authorLabel.Text = "This is an open-source app created by Sigmanor";
this.AuthorLinkLabel.UseCompatibleTextRendering = true; this.authorLabel.UseCompatibleTextRendering = true;
this.AuthorLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.AuthorLinkLabel_LinkClicked); this.authorLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.AuthorLabel_LinkClicked);
// //
// LicenseLinkLabel // licenseLabel
// //
this.LicenseLinkLabel.ActiveLinkColor = System.Drawing.Color.White; this.licenseLabel.ActiveLinkColor = System.Drawing.Color.White;
this.LicenseLinkLabel.AutoSize = true; this.licenseLabel.AutoSize = true;
this.LicenseLinkLabel.DisabledLinkColor = System.Drawing.Color.White; this.licenseLabel.DisabledLinkColor = System.Drawing.Color.White;
this.LicenseLinkLabel.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.licenseLabel.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.LicenseLinkLabel.ForeColor = System.Drawing.Color.White; this.licenseLabel.ForeColor = System.Drawing.SystemColors.Control;
this.LicenseLinkLabel.LinkArea = new System.Windows.Forms.LinkArea(18, 3); this.licenseLabel.LinkArea = new System.Windows.Forms.LinkArea(18, 3);
this.LicenseLinkLabel.LinkColor = System.Drawing.Color.White; this.licenseLabel.LinkColor = System.Drawing.Color.White;
this.LicenseLinkLabel.Location = new System.Drawing.Point(9, 57); this.licenseLabel.Location = new System.Drawing.Point(8, 57);
this.LicenseLinkLabel.Name = "LicenseLinkLabel"; this.licenseLabel.Name = "licenseLabel";
this.LicenseLinkLabel.Size = new System.Drawing.Size(185, 18); this.licenseLabel.Size = new System.Drawing.Size(202, 19);
this.LicenseLinkLabel.TabIndex = 9; this.licenseLabel.TabIndex = 9;
this.LicenseLinkLabel.TabStop = true; this.licenseLabel.TabStop = true;
this.LicenseLinkLabel.Text = "Distributed under MIT license"; this.licenseLabel.Text = "Distributed under MIT license";
this.LicenseLinkLabel.UseCompatibleTextRendering = true; this.licenseLabel.UseCompatibleTextRendering = true;
this.LicenseLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LicenseLinkLabel_LinkClicked); this.licenseLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LicenseLabel_LinkClicked);
// //
// GithubLinkLabel // githubLabel
// //
this.GithubLinkLabel.ActiveLinkColor = System.Drawing.Color.White; this.githubLabel.ActiveLinkColor = System.Drawing.Color.White;
this.GithubLinkLabel.AutoSize = true; this.githubLabel.AutoSize = true;
this.GithubLinkLabel.DisabledLinkColor = System.Drawing.Color.White; this.githubLabel.DisabledLinkColor = System.Drawing.Color.White;
this.GithubLinkLabel.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.githubLabel.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.GithubLinkLabel.ForeColor = System.Drawing.Color.White; this.githubLabel.ForeColor = System.Drawing.SystemColors.Control;
this.GithubLinkLabel.LinkArea = new System.Windows.Forms.LinkArea(52, 6); this.githubLabel.LinkArea = new System.Windows.Forms.LinkArea(52, 6);
this.GithubLinkLabel.LinkColor = System.Drawing.Color.White; this.githubLabel.LinkColor = System.Drawing.Color.White;
this.GithubLinkLabel.Location = new System.Drawing.Point(9, 75); this.githubLabel.Location = new System.Drawing.Point(8, 75);
this.GithubLinkLabel.Name = "GithubLinkLabel"; this.githubLabel.Name = "githubLabel";
this.GithubLinkLabel.Size = new System.Drawing.Size(366, 18); this.githubLabel.Size = new System.Drawing.Size(399, 19);
this.GithubLinkLabel.TabIndex = 9; this.githubLabel.TabIndex = 9;
this.GithubLinkLabel.TabStop = true; this.githubLabel.TabStop = true;
this.GithubLinkLabel.Text = "The source code, issues and documentation posted on GitHub"; this.githubLabel.Text = "The source code, issues and documentation posted on GitHub";
this.GithubLinkLabel.UseCompatibleTextRendering = true; this.githubLabel.UseCompatibleTextRendering = true;
this.GithubLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.GithubLinkLabel_LinkClicked); this.githubLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.GithubLabel_LinkClicked);
// //
// ContributorsLabel // contributorsLabel
// //
this.ContributorsLabel.AutoSize = true; 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.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.ContributorsLabel.ForeColor = System.Drawing.Color.White; this.contributorsLabel.ForeColor = System.Drawing.SystemColors.Highlight;
this.ContributorsLabel.Location = new System.Drawing.Point(6, 105); this.contributorsLabel.Location = new System.Drawing.Point(5, 105);
this.ContributorsLabel.Name = "ContributorsLabel"; this.contributorsLabel.Name = "contributorsLabel";
this.ContributorsLabel.Size = new System.Drawing.Size(104, 18); this.contributorsLabel.Size = new System.Drawing.Size(104, 18);
this.ContributorsLabel.TabIndex = 4; this.contributorsLabel.TabIndex = 4;
this.ContributorsLabel.Text = "Contributors"; this.contributorsLabel.Text = "Contributors";
// //
// ContributorsRichTextBox // contributorsList
// //
this.ContributorsRichTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50))))); this.contributorsList.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.ContributorsRichTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None; this.contributorsList.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.ContributorsRichTextBox.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.contributorsList.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.ContributorsRichTextBox.ForeColor = System.Drawing.Color.White; this.contributorsList.ForeColor = System.Drawing.SystemColors.Control;
this.ContributorsRichTextBox.Location = new System.Drawing.Point(0, 129); this.contributorsList.Location = new System.Drawing.Point(-1, 126);
this.ContributorsRichTextBox.Name = "ContributorsRichTextBox"; this.contributorsList.Name = "contributorsList";
this.ContributorsRichTextBox.ReadOnly = true; this.contributorsList.ReadOnly = true;
this.ContributorsRichTextBox.RightMargin = 700; this.contributorsList.RightMargin = 700;
this.ContributorsRichTextBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None; this.contributorsList.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.ContributorsRichTextBox.ShowSelectionMargin = true; this.contributorsList.ShowSelectionMargin = true;
this.ContributorsRichTextBox.Size = new System.Drawing.Size(397, 20); this.contributorsList.Size = new System.Drawing.Size(414, 20);
this.ContributorsRichTextBox.TabIndex = 11; this.contributorsList.TabIndex = 11;
this.ContributorsRichTextBox.Text = "h5p9sl https://github.com/h5p9sl"; this.contributorsList.Text = "h5p9sl https://github.com/h5p9sl";
this.ContributorsRichTextBox.WordWrap = false; this.contributorsList.WordWrap = false;
this.ContributorsRichTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.ContributorsRichTextBox_LinkClicked); this.contributorsList.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.ContributorsList_LinkClicked);
// //
// TPDRichTextBox // thirdPartyDevList
// //
this.TPDRichTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50))))); this.thirdPartyDevList.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.TPDRichTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None; this.thirdPartyDevList.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.TPDRichTextBox.Dock = System.Windows.Forms.DockStyle.Bottom; this.thirdPartyDevList.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.TPDRichTextBox.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.TPDRichTextBox.ForeColor = System.Drawing.Color.White; this.thirdPartyDevList.Location = new System.Drawing.Point(-1, 179);
this.TPDRichTextBox.Location = new System.Drawing.Point(0, 183); this.thirdPartyDevList.Name = "thirdPartyDevList";
this.TPDRichTextBox.Name = "TPDRichTextBox"; this.thirdPartyDevList.ReadOnly = true;
this.TPDRichTextBox.ReadOnly = true; this.thirdPartyDevList.RightMargin = 700;
this.TPDRichTextBox.RightMargin = 700; this.thirdPartyDevList.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedHorizontal;
this.TPDRichTextBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedHorizontal; this.thirdPartyDevList.ShowSelectionMargin = true;
this.TPDRichTextBox.ShowSelectionMargin = true; this.thirdPartyDevList.Size = new System.Drawing.Size(414, 101);
this.TPDRichTextBox.Size = new System.Drawing.Size(397, 101); this.thirdPartyDevList.TabIndex = 10;
this.TPDRichTextBox.TabIndex = 10; this.thirdPartyDevList.Text = resources.GetString("thirdPartyDevList.Text");
this.TPDRichTextBox.Text = resources.GetString("TPDRichTextBox.Text"); this.thirdPartyDevList.WordWrap = false;
this.TPDRichTextBox.WordWrap = false; this.thirdPartyDevList.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.ThirdPartyDevList_LinkClicked);
this.TPDRichTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.TPDRichTextBox_LinkClicked);
// //
// AboutFrom // AboutFrom
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50))))); this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.ClientSize = new System.Drawing.Size(397, 284); this.ClientSize = new System.Drawing.Size(411, 280);
this.Controls.Add(this.ContributorsRichTextBox); this.Controls.Add(this.contributorsList);
this.Controls.Add(this.TPDRichTextBox); this.Controls.Add(this.thirdPartyDevList);
this.Controls.Add(this.GithubLinkLabel); this.Controls.Add(this.githubLabel);
this.Controls.Add(this.LicenseLinkLabel); this.Controls.Add(this.licenseLabel);
this.Controls.Add(this.AuthorLinkLabel); this.Controls.Add(this.authorLabel);
this.Controls.Add(this.AppLogoPictureBox); this.Controls.Add(this.appLogo);
this.Controls.Add(this.AppVersionLabel); this.Controls.Add(this.appVersionLabel);
this.Controls.Add(this.ContributorsLabel); this.Controls.Add(this.contributorsLabel);
this.Controls.Add(this.TPDLabel); this.Controls.Add(this.thirdPartyDevLabel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "AboutFrom"; this.Name = "AboutFrom";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "About"; this.Text = "About";
this.Load += new System.EventHandler(this.AboutWindow_Load); this.Load += new System.EventHandler(this.AboutWindow_Load);
this.Click += new System.EventHandler(this.AboutFrom_Click); this.Click += new System.EventHandler(this.AboutFrom_Click);
((System.ComponentModel.ISupportInitialize)(this.AppLogoPictureBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.appLogo)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -211,14 +211,14 @@ private void InitializeComponent()
#endregion #endregion
private System.Windows.Forms.Label AppVersionLabel; private System.Windows.Forms.Label appVersionLabel;
private System.Windows.Forms.PictureBox AppLogoPictureBox; private System.Windows.Forms.PictureBox appLogo;
private System.Windows.Forms.Label TPDLabel; private System.Windows.Forms.Label thirdPartyDevLabel;
private System.Windows.Forms.LinkLabel AuthorLinkLabel; private System.Windows.Forms.LinkLabel authorLabel;
private System.Windows.Forms.LinkLabel LicenseLinkLabel; private System.Windows.Forms.LinkLabel licenseLabel;
private System.Windows.Forms.LinkLabel GithubLinkLabel; private System.Windows.Forms.LinkLabel githubLabel;
private System.Windows.Forms.Label ContributorsLabel; private System.Windows.Forms.Label contributorsLabel;
private ExRichTextBox TPDRichTextBox; private ExRichTextBox thirdPartyDevList;
private ExRichTextBox ContributorsRichTextBox; private ExRichTextBox contributorsList;
} }
} }

View file

@ -16,12 +16,12 @@ public AboutFrom()
private void AboutWindow_Load(object sender, EventArgs e) private void AboutWindow_Load(object sender, EventArgs e)
{ {
Version vrs = new Version(Application.ProductVersion); Version vrs = new Version(Application.ProductVersion);
AppVersionLabel.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build); appVersionLabel.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
} }
private void AboutFrom_Click(object sender, EventArgs e) private void AboutFrom_Click(object sender, EventArgs e)
{ {
AppLogoPictureBox.Focus(); appLogo.Focus();
} }
protected override bool ProcessDialogKey(Keys keyData) protected override bool ProcessDialogKey(Keys keyData)
@ -42,22 +42,22 @@ private void AppVersionLabel_Click(object sender, EventArgs e)
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes"); Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes");
} }
private void AuthorLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void AuthorLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{ {
Process.Start("https://sigmanor.github.io/"); Process.Start("https://sigmanor.github.io/");
} }
private void LicenseLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void LicenseLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{ {
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE"); Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE");
} }
private void GithubLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void GithubLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{ {
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad"); Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad");
} }
private void AppLogoPictureBox_Click(object sender, EventArgs e) private void AppLogo_Click(object sender, EventArgs e)
{ {
Process.Start("https://crypto-notepad.github.io/"); Process.Start("https://crypto-notepad.github.io/");
} }
@ -65,12 +65,12 @@ private void AppLogoPictureBox_Click(object sender, EventArgs e)
/*Perform open links*/ /*Perform open links*/
private void TPDRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e) private void ThirdPartyDevList_LinkClicked(object sender, LinkClickedEventArgs e)
{ {
Process.Start(e.LinkText); Process.Start(e.LinkText);
} }
private void ContributorsRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e) private void ContributorsList_LinkClicked(object sender, LinkClickedEventArgs e)
{ {
Process.Start(e.LinkText); Process.Start(e.LinkText);
} }

View file

@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="AppLogoPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="appLogo.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH
DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp
@ -367,7 +367,7 @@
oG+yCQAAejY86/8DNhf6iwbS6s8AAAAASUVORK5CYII= oG+yCQAAejY86/8DNhf6iwbS6s8AAAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="TPDRichTextBox.Text" xml:space="preserve"> <data name="thirdPartyDevList.Text" xml:space="preserve">
<value>Line Numbers for RichTextBox: https://www.codeproject.com/Articles/38858/Line-Numbers-for-RichText-Control-in-C <value>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 CustomSettingsProvider: http://www.codeproject.com/Articles/20917/Settings-Provider
MsgBoxCenterParent: http://stackoverflow.com/a/2576220/4430027 MsgBoxCenterParent: http://stackoverflow.com/a/2576220/4430027

View file

@ -28,152 +28,153 @@ protected override void Dispose(bool disposing)
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.OldKeyTextBox = new System.Windows.Forms.TextBox(); this.oldKeyTextBox = new System.Windows.Forms.TextBox();
this.NewKeyTextBox = new System.Windows.Forms.TextBox(); this.newKeyTextBox = new System.Windows.Forms.TextBox();
this.OldKeyLabel = new System.Windows.Forms.Label(); this.oldKeyLabel = new System.Windows.Forms.Label();
this.NewKeyLabel = new System.Windows.Forms.Label(); this.newKeyLabel = new System.Windows.Forms.Label();
this.AcceptButton = new System.Windows.Forms.Button(); this.acceptButton = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel(); this.mainPanel = new System.Windows.Forms.Panel();
this.KeysPictureBox = new System.Windows.Forms.PictureBox(); this.lockIcon = new System.Windows.Forms.PictureBox();
this.EyePictureBox2 = new System.Windows.Forms.PictureBox(); this.newKeyEyeIcon = new System.Windows.Forms.PictureBox();
this.EyePictureBox1 = new System.Windows.Forms.PictureBox(); this.oldKeyEyeIcon = new System.Windows.Forms.PictureBox();
this.StatusLabel = new System.Windows.Forms.Label(); this.statusLabel = new System.Windows.Forms.Label();
this.panel1.SuspendLayout(); this.mainPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.KeysPictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lockIcon)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.EyePictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.newKeyEyeIcon)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.EyePictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.oldKeyEyeIcon)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// OldKeyTextBox // oldKeyTextBox
// //
this.OldKeyTextBox.Location = new System.Drawing.Point(120, 9); this.oldKeyTextBox.Location = new System.Drawing.Point(120, 9);
this.OldKeyTextBox.Name = "OldKeyTextBox"; this.oldKeyTextBox.Name = "oldKeyTextBox";
this.OldKeyTextBox.Size = new System.Drawing.Size(100, 20); this.oldKeyTextBox.Size = new System.Drawing.Size(121, 20);
this.OldKeyTextBox.TabIndex = 0; this.oldKeyTextBox.TabIndex = 0;
this.OldKeyTextBox.UseSystemPasswordChar = true; this.oldKeyTextBox.UseSystemPasswordChar = true;
this.OldKeyTextBox.TextChanged += new System.EventHandler(this.OldKeyTextBox_TextChanged); this.oldKeyTextBox.TextChanged += new System.EventHandler(this.OldKeyTextBox_TextChanged);
// //
// NewKeyTextBox // newKeyTextBox
// //
this.NewKeyTextBox.Location = new System.Drawing.Point(120, 43); this.newKeyTextBox.Location = new System.Drawing.Point(120, 43);
this.NewKeyTextBox.Name = "NewKeyTextBox"; this.newKeyTextBox.Name = "newKeyTextBox";
this.NewKeyTextBox.Size = new System.Drawing.Size(100, 20); this.newKeyTextBox.Size = new System.Drawing.Size(121, 20);
this.NewKeyTextBox.TabIndex = 1; this.newKeyTextBox.TabIndex = 1;
this.NewKeyTextBox.UseSystemPasswordChar = true; this.newKeyTextBox.UseSystemPasswordChar = true;
this.NewKeyTextBox.TextChanged += new System.EventHandler(this.NewKeyTextBox_TextChanged); this.newKeyTextBox.TextChanged += new System.EventHandler(this.NewKeyTextBox_TextChanged);
// //
// OldKeyLabel // oldKeyLabel
// //
this.OldKeyLabel.AutoSize = true; this.oldKeyLabel.AutoSize = true;
this.OldKeyLabel.Location = new System.Drawing.Point(61, 12); this.oldKeyLabel.Location = new System.Drawing.Point(61, 12);
this.OldKeyLabel.Name = "OldKeyLabel"; this.oldKeyLabel.Name = "oldKeyLabel";
this.OldKeyLabel.Size = new System.Drawing.Size(47, 13); this.oldKeyLabel.Size = new System.Drawing.Size(47, 13);
this.OldKeyLabel.TabIndex = 2; this.oldKeyLabel.TabIndex = 2;
this.OldKeyLabel.Text = "Old Key:"; this.oldKeyLabel.Text = "Old Key:";
// //
// NewKeyLabel // newKeyLabel
// //
this.NewKeyLabel.AutoSize = true; this.newKeyLabel.AutoSize = true;
this.NewKeyLabel.Location = new System.Drawing.Point(61, 46); this.newKeyLabel.Location = new System.Drawing.Point(61, 46);
this.NewKeyLabel.Name = "NewKeyLabel"; this.newKeyLabel.Name = "newKeyLabel";
this.NewKeyLabel.Size = new System.Drawing.Size(53, 13); this.newKeyLabel.Size = new System.Drawing.Size(53, 13);
this.NewKeyLabel.TabIndex = 3; this.newKeyLabel.TabIndex = 3;
this.NewKeyLabel.Text = "New Key:"; this.newKeyLabel.Text = "New Key:";
// //
// AcceptButton // acceptButton
// //
this.AcceptButton.Enabled = false; this.acceptButton.Enabled = false;
this.AcceptButton.Location = new System.Drawing.Point(206, 82); this.acceptButton.Location = new System.Drawing.Point(212, 81);
this.AcceptButton.Name = "AcceptButton"; this.acceptButton.Name = "acceptButton";
this.AcceptButton.Size = new System.Drawing.Size(53, 23); this.acceptButton.Size = new System.Drawing.Size(53, 23);
this.AcceptButton.TabIndex = 4; this.acceptButton.TabIndex = 4;
this.AcceptButton.Text = "Accept"; this.acceptButton.Text = "Accept";
this.AcceptButton.UseVisualStyleBackColor = true; this.acceptButton.UseVisualStyleBackColor = true;
this.AcceptButton.Click += new System.EventHandler(this.AcceptButton_Click); this.acceptButton.Click += new System.EventHandler(this.AcceptButton_Click);
// //
// panel1 // mainPanel
// //
this.panel1.BackColor = System.Drawing.Color.White; this.mainPanel.BackColor = System.Drawing.Color.White;
this.panel1.Controls.Add(this.KeysPictureBox); this.mainPanel.Controls.Add(this.lockIcon);
this.panel1.Controls.Add(this.EyePictureBox2); this.mainPanel.Controls.Add(this.newKeyEyeIcon);
this.panel1.Controls.Add(this.OldKeyLabel); this.mainPanel.Controls.Add(this.oldKeyLabel);
this.panel1.Controls.Add(this.EyePictureBox1); this.mainPanel.Controls.Add(this.oldKeyEyeIcon);
this.panel1.Controls.Add(this.OldKeyTextBox); this.mainPanel.Controls.Add(this.oldKeyTextBox);
this.panel1.Controls.Add(this.NewKeyTextBox); this.mainPanel.Controls.Add(this.newKeyTextBox);
this.panel1.Controls.Add(this.NewKeyLabel); this.mainPanel.Controls.Add(this.newKeyLabel);
this.panel1.Location = new System.Drawing.Point(0, 0); this.mainPanel.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1"; this.mainPanel.Name = "mainPanel";
this.panel1.Size = new System.Drawing.Size(262, 75); this.mainPanel.Size = new System.Drawing.Size(268, 75);
this.panel1.TabIndex = 6; this.mainPanel.TabIndex = 6;
// //
// KeysPictureBox // lockIcon
// //
this.KeysPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lockIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.KeysPictureBox.Image = global::Crypto_Notepad.Properties.Resources.big_lock; this.lockIcon.Image = global::Crypto_Notepad.Properties.Resources.big_lock;
this.KeysPictureBox.Location = new System.Drawing.Point(8, 12); this.lockIcon.Location = new System.Drawing.Point(8, 12);
this.KeysPictureBox.Name = "KeysPictureBox"; this.lockIcon.Name = "lockIcon";
this.KeysPictureBox.Size = new System.Drawing.Size(47, 47); this.lockIcon.Size = new System.Drawing.Size(47, 47);
this.KeysPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.lockIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.KeysPictureBox.TabIndex = 7; this.lockIcon.TabIndex = 7;
this.KeysPictureBox.TabStop = false; this.lockIcon.TabStop = false;
// //
// EyePictureBox2 // newKeyEyeIcon
// //
this.EyePictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.newKeyEyeIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.EyePictureBox2.Cursor = System.Windows.Forms.Cursors.Hand; this.newKeyEyeIcon.Cursor = System.Windows.Forms.Cursors.Hand;
this.EyePictureBox2.Image = global::Crypto_Notepad.Properties.Resources.eye_half; this.newKeyEyeIcon.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
this.EyePictureBox2.Location = new System.Drawing.Point(219, 43); this.newKeyEyeIcon.Location = new System.Drawing.Point(247, 43);
this.EyePictureBox2.Name = "EyePictureBox2"; this.newKeyEyeIcon.Name = "newKeyEyeIcon";
this.EyePictureBox2.Size = new System.Drawing.Size(32, 20); this.newKeyEyeIcon.Size = new System.Drawing.Size(18, 20);
this.EyePictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.newKeyEyeIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.EyePictureBox2.TabIndex = 5; this.newKeyEyeIcon.TabIndex = 5;
this.EyePictureBox2.TabStop = false; this.newKeyEyeIcon.TabStop = false;
this.EyePictureBox2.Click += new System.EventHandler(this.EyePictureBox2_Click); this.newKeyEyeIcon.Click += new System.EventHandler(this.NewKeyEyeIcon_Click);
// //
// EyePictureBox1 // oldKeyEyeIcon
// //
this.EyePictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.oldKeyEyeIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.EyePictureBox1.Cursor = System.Windows.Forms.Cursors.Hand; this.oldKeyEyeIcon.Cursor = System.Windows.Forms.Cursors.Hand;
this.EyePictureBox1.Image = global::Crypto_Notepad.Properties.Resources.eye_half; this.oldKeyEyeIcon.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
this.EyePictureBox1.Location = new System.Drawing.Point(219, 9); this.oldKeyEyeIcon.Location = new System.Drawing.Point(247, 9);
this.EyePictureBox1.Name = "EyePictureBox1"; this.oldKeyEyeIcon.Name = "oldKeyEyeIcon";
this.EyePictureBox1.Size = new System.Drawing.Size(32, 20); this.oldKeyEyeIcon.Size = new System.Drawing.Size(18, 20);
this.EyePictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.oldKeyEyeIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.EyePictureBox1.TabIndex = 5; this.oldKeyEyeIcon.TabIndex = 5;
this.EyePictureBox1.TabStop = false; this.oldKeyEyeIcon.TabStop = false;
this.EyePictureBox1.Click += new System.EventHandler(this.EyePictureBox1_Click); this.oldKeyEyeIcon.Click += new System.EventHandler(this.OldKeyEyeIcon_Click);
// //
// StatusLabel // statusLabel
// //
this.StatusLabel.AutoSize = true; 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.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.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.Location = new System.Drawing.Point(5, 87);
this.StatusLabel.Name = "StatusLabel"; this.statusLabel.Name = "statusLabel";
this.StatusLabel.Size = new System.Drawing.Size(43, 16); this.statusLabel.Size = new System.Drawing.Size(43, 16);
this.StatusLabel.TabIndex = 7; this.statusLabel.TabIndex = 7;
this.StatusLabel.Text = "status"; this.statusLabel.Text = "status";
this.StatusLabel.Visible = false; this.statusLabel.Visible = false;
// //
// ChangeKeyForm // ChangeKeyForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(263, 111); this.ClientSize = new System.Drawing.Size(269, 111);
this.Controls.Add(this.StatusLabel); this.Controls.Add(this.statusLabel);
this.Controls.Add(this.panel1); this.Controls.Add(this.mainPanel);
this.Controls.Add(this.AcceptButton); this.Controls.Add(this.acceptButton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "ChangeKeyForm"; this.Name = "ChangeKeyForm";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Change Key"; this.Text = "Change Key";
this.panel1.ResumeLayout(false); this.mainPanel.ResumeLayout(false);
this.panel1.PerformLayout(); this.mainPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.KeysPictureBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lockIcon)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.EyePictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.newKeyEyeIcon)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.EyePictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.oldKeyEyeIcon)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -181,15 +182,15 @@ private void InitializeComponent()
#endregion #endregion
private System.Windows.Forms.TextBox OldKeyTextBox; private System.Windows.Forms.TextBox oldKeyTextBox;
private System.Windows.Forms.TextBox NewKeyTextBox; private System.Windows.Forms.TextBox newKeyTextBox;
private System.Windows.Forms.Label OldKeyLabel; private System.Windows.Forms.Label oldKeyLabel;
private System.Windows.Forms.Label NewKeyLabel; private System.Windows.Forms.Label newKeyLabel;
private new System.Windows.Forms.Button AcceptButton; private System.Windows.Forms.Button acceptButton;
private System.Windows.Forms.PictureBox EyePictureBox1; private System.Windows.Forms.PictureBox oldKeyEyeIcon;
private System.Windows.Forms.PictureBox EyePictureBox2; private System.Windows.Forms.PictureBox newKeyEyeIcon;
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel mainPanel;
private System.Windows.Forms.PictureBox KeysPictureBox; private System.Windows.Forms.PictureBox lockIcon;
private System.Windows.Forms.Label StatusLabel; private System.Windows.Forms.Label statusLabel;
} }
} }

View file

@ -15,37 +15,37 @@ public ChangeKeyForm()
/*Buttons*/ /*Buttons*/
private async void AcceptButton_Click(object sender, EventArgs e) private async void AcceptButton_Click(object sender, EventArgs e)
{ {
if (OldKeyTextBox.Text == PublicVar.encryptionKey.Get() && OldKeyTextBox.Text != NewKeyTextBox.Text) if (oldKeyTextBox.Text == PublicVar.encryptionKey.Get() && oldKeyTextBox.Text != newKeyTextBox.Text)
{ {
PublicVar.encryptionKey.Set(NewKeyTextBox.Text); PublicVar.encryptionKey.Set(newKeyTextBox.Text);
PublicVar.keyChanged = true; PublicVar.keyChanged = true;
OldKeyTextBox.Text = ""; oldKeyTextBox.Text = "";
NewKeyTextBox.Text = ""; newKeyTextBox.Text = "";
StatusLabel.Text = "Key was successfully changed"; statusLabel.Text = "Key was successfully changed";
StatusLabel.Visible = true; statusLabel.Visible = true;
AcceptButton.Enabled = false; acceptButton.Enabled = false;
await Task.Delay(2000); await Task.Delay(2000);
StatusLabel.Text = ""; statusLabel.Text = "";
return; return;
} }
if (OldKeyTextBox.Text != PublicVar.encryptionKey.Get()) if (oldKeyTextBox.Text != PublicVar.encryptionKey.Get())
{ {
SystemSounds.Beep.Play(); SystemSounds.Beep.Play();
StatusLabel.Text = "Invalid old key"; statusLabel.Text = "Invalid old key";
StatusLabel.Visible = true; statusLabel.Visible = true;
OldKeyTextBox.Text = ""; oldKeyTextBox.Text = "";
NewKeyTextBox.Text = ""; newKeyTextBox.Text = "";
return; return;
} }
if (OldKeyTextBox.Text == NewKeyTextBox.Text) if (oldKeyTextBox.Text == newKeyTextBox.Text)
{ {
SystemSounds.Beep.Play(); SystemSounds.Beep.Play();
StatusLabel.Text = "New key is the same as old"; statusLabel.Text = "New key is the same as old";
StatusLabel.Visible = true; statusLabel.Visible = true;
OldKeyTextBox.Text = ""; oldKeyTextBox.Text = "";
NewKeyTextBox.Text = ""; newKeyTextBox.Text = "";
return; return;
} }
} }
@ -53,55 +53,55 @@ private async void AcceptButton_Click(object sender, EventArgs e)
/*Enter keys area*/ /*Enter keys area*/
private void EyePictureBox1_Click(object sender, EventArgs e) private void OldKeyEyeIcon_Click(object sender, EventArgs e)
{ {
if (OldKeyTextBox.UseSystemPasswordChar) if (oldKeyTextBox.UseSystemPasswordChar)
{ {
OldKeyTextBox.UseSystemPasswordChar = false; oldKeyTextBox.UseSystemPasswordChar = false;
EyePictureBox1.Image = Properties.Resources.eye; oldKeyEyeIcon.Image = Properties.Resources.eye;
} }
else else
{ {
OldKeyTextBox.UseSystemPasswordChar = true; oldKeyTextBox.UseSystemPasswordChar = true;
EyePictureBox1.Image = Properties.Resources.eye_half; oldKeyEyeIcon.Image = Properties.Resources.eye_half;
} }
} }
private void EyePictureBox2_Click(object sender, EventArgs e) private void NewKeyEyeIcon_Click(object sender, EventArgs e)
{ {
if (NewKeyTextBox.UseSystemPasswordChar) if (newKeyTextBox.UseSystemPasswordChar)
{ {
NewKeyTextBox.UseSystemPasswordChar = false; newKeyTextBox.UseSystemPasswordChar = false;
EyePictureBox2.Image = Properties.Resources.eye; newKeyEyeIcon.Image = Properties.Resources.eye;
} }
else else
{ {
NewKeyTextBox.UseSystemPasswordChar = true; newKeyTextBox.UseSystemPasswordChar = true;
EyePictureBox2.Image = Properties.Resources.eye_half; newKeyEyeIcon.Image = Properties.Resources.eye_half;
} }
} }
private void OldKeyTextBox_TextChanged(object sender, EventArgs e) private void OldKeyTextBox_TextChanged(object sender, EventArgs e)
{ {
if (OldKeyTextBox.Text.Length > 0) if (oldKeyTextBox.Text.Length > 0 && newKeyTextBox.Text.Length > 0)
{ {
AcceptButton.Enabled = true; acceptButton.Enabled = true;
} }
else else
{ {
AcceptButton.Enabled = false; acceptButton.Enabled = false;
} }
} }
private void NewKeyTextBox_TextChanged(object sender, EventArgs e) private void NewKeyTextBox_TextChanged(object sender, EventArgs e)
{ {
if (NewKeyTextBox.Text.Length > 0) if (newKeyTextBox.Text.Length > 0 && oldKeyTextBox.Text.Length > 0)
{ {
AcceptButton.Enabled = true; acceptButton.Enabled = true;
} }
else else
{ {
AcceptButton.Enabled = false; acceptButton.Enabled = false;
} }
} }
/*Enter keys area*/ /*Enter keys area*/

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
@ -104,7 +104,7 @@
<DependentUpon>ChangeKeyForm.cs</DependentUpon> <DependentUpon>ChangeKeyForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="EncryptedString.cs" /> <Compile Include="EncryptedString.cs" />
<Compile Include="linenum_rtf.cs"> <Compile Include="LineNumbers.cs">
<SubType>Component</SubType> <SubType>Component</SubType>
</Compile> </Compile>
<Compile Include="MainForm.cs"> <Compile Include="MainForm.cs">

View file

@ -28,95 +28,95 @@ protected override void Dispose(bool disposing)
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EnterKeyForm));
this.KeyTextBox = new System.Windows.Forms.TextBox(); this.keyTextBox = new System.Windows.Forms.TextBox();
this.OkButton = new System.Windows.Forms.Button(); this.okButton = new System.Windows.Forms.Button();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.keyEyeIcon = new System.Windows.Forms.PictureBox();
this.EyePictureBox = new System.Windows.Forms.PictureBox(); this.mainPanel = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel(); this.lockIcon = new System.Windows.Forms.PictureBox();
this.KeyPictureBox = new System.Windows.Forms.PictureBox(); this.fileNameLabel = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.keyEyeIcon)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.EyePictureBox)).BeginInit(); this.mainPanel.SuspendLayout();
this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lockIcon)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.KeyPictureBox)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// KeyTextBox // keyTextBox
// //
this.KeyTextBox.Location = new System.Drawing.Point(64, 39); this.keyTextBox.Location = new System.Drawing.Point(64, 39);
this.KeyTextBox.Name = "KeyTextBox"; this.keyTextBox.Name = "keyTextBox";
this.KeyTextBox.Size = new System.Drawing.Size(100, 20); this.keyTextBox.Size = new System.Drawing.Size(177, 20);
this.KeyTextBox.TabIndex = 0; this.keyTextBox.TabIndex = 0;
this.KeyTextBox.UseSystemPasswordChar = true; this.keyTextBox.UseSystemPasswordChar = true;
this.KeyTextBox.TextChanged += new System.EventHandler(this.KeyTextBox_TextChanged); this.keyTextBox.TextChanged += new System.EventHandler(this.KeyTextBox_TextChanged);
this.KeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KeyTextBox_KeyDown); this.keyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KeyTextBox_KeyDown);
// //
// OkButton // okButton
// //
this.OkButton.Enabled = false; this.okButton.Enabled = false;
this.OkButton.Location = new System.Drawing.Point(112, 79); this.okButton.Location = new System.Drawing.Point(190, 79);
this.OkButton.Name = "OkButton"; this.okButton.Name = "okButton";
this.OkButton.Size = new System.Drawing.Size(75, 23); this.okButton.Size = new System.Drawing.Size(75, 23);
this.OkButton.TabIndex = 1; this.okButton.TabIndex = 1;
this.OkButton.Text = "OK"; this.okButton.Text = "OK";
this.OkButton.UseVisualStyleBackColor = true; this.okButton.UseVisualStyleBackColor = true;
this.OkButton.Click += new System.EventHandler(this.OkButton_Click); this.okButton.Click += new System.EventHandler(this.OkButton_Click);
// //
// EyePictureBox // keyEyeIcon
// //
this.EyePictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.keyEyeIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.EyePictureBox.Cursor = System.Windows.Forms.Cursors.Hand; this.keyEyeIcon.Cursor = System.Windows.Forms.Cursors.Hand;
this.EyePictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half; this.keyEyeIcon.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
this.EyePictureBox.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half; this.keyEyeIcon.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half;
this.EyePictureBox.Location = new System.Drawing.Point(163, 39); this.keyEyeIcon.Location = new System.Drawing.Point(247, 39);
this.EyePictureBox.Name = "EyePictureBox"; this.keyEyeIcon.Name = "keyEyeIcon";
this.EyePictureBox.Size = new System.Drawing.Size(18, 20); this.keyEyeIcon.Size = new System.Drawing.Size(18, 20);
this.EyePictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.keyEyeIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.EyePictureBox.TabIndex = 3; this.keyEyeIcon.TabIndex = 3;
this.EyePictureBox.TabStop = false; this.keyEyeIcon.TabStop = false;
this.toolTip1.SetToolTip(this.EyePictureBox, "Show key"); this.keyEyeIcon.Click += new System.EventHandler(this.KeyEyeIcon_Click);
this.EyePictureBox.Click += new System.EventHandler(this.EyePictureBox_Click);
// //
// panel1 // mainPanel
// //
this.panel1.BackColor = System.Drawing.Color.White; this.mainPanel.BackColor = System.Drawing.Color.White;
this.panel1.Controls.Add(this.KeyPictureBox); this.mainPanel.Controls.Add(this.lockIcon);
this.panel1.Controls.Add(this.label1); this.mainPanel.Controls.Add(this.fileNameLabel);
this.panel1.Controls.Add(this.KeyTextBox); this.mainPanel.Controls.Add(this.keyTextBox);
this.panel1.Controls.Add(this.EyePictureBox); this.mainPanel.Controls.Add(this.keyEyeIcon);
this.panel1.Location = new System.Drawing.Point(0, 0); this.mainPanel.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1"; this.mainPanel.Name = "mainPanel";
this.panel1.Size = new System.Drawing.Size(191, 73); this.mainPanel.Size = new System.Drawing.Size(269, 73);
this.panel1.TabIndex = 5; this.mainPanel.TabIndex = 5;
// //
// KeyPictureBox // lockIcon
// //
this.KeyPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lockIcon.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.KeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.big_lock; this.lockIcon.Image = global::Crypto_Notepad.Properties.Resources.big_lock;
this.KeyPictureBox.Location = new System.Drawing.Point(8, 12); this.lockIcon.Location = new System.Drawing.Point(8, 12);
this.KeyPictureBox.Name = "KeyPictureBox"; this.lockIcon.Name = "lockIcon";
this.KeyPictureBox.Size = new System.Drawing.Size(47, 47); this.lockIcon.Size = new System.Drawing.Size(47, 47);
this.KeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.lockIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.KeyPictureBox.TabIndex = 6; this.lockIcon.TabIndex = 6;
this.KeyPictureBox.TabStop = false; this.lockIcon.TabStop = false;
// //
// label1 // fileNameLabel
// //
this.label1.AutoSize = true; this.fileNameLabel.AutoEllipsis = true;
this.label1.Location = new System.Drawing.Point(61, 12); this.fileNameLabel.Location = new System.Drawing.Point(61, 12);
this.label1.Name = "label1"; this.fileNameLabel.Name = "fileNameLabel";
this.label1.Size = new System.Drawing.Size(125, 13); this.fileNameLabel.Size = new System.Drawing.Size(196, 13);
this.label1.TabIndex = 6; this.fileNameLabel.TabIndex = 6;
this.label1.Text = "Enter the encryption key:"; this.fileNameLabel.Text = "Enter the encryption key:";
this.fileNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// EnterKeyForm // EnterKeyForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(191, 107); this.ClientSize = new System.Drawing.Size(269, 107);
this.Controls.Add(this.panel1); this.Controls.Add(this.mainPanel);
this.Controls.Add(this.OkButton); this.Controls.Add(this.okButton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "EnterKeyForm"; this.Name = "EnterKeyForm";
@ -124,21 +124,20 @@ private void InitializeComponent()
this.Text = "Crypto Notepad"; this.Text = "Crypto Notepad";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.EnterKeyForm_FormClosed); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.EnterKeyForm_FormClosed);
this.Load += new System.EventHandler(this.EnterKeyForm_Load); this.Load += new System.EventHandler(this.EnterKeyForm_Load);
((System.ComponentModel.ISupportInitialize)(this.EyePictureBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.keyEyeIcon)).EndInit();
this.panel1.ResumeLayout(false); this.mainPanel.ResumeLayout(false);
this.panel1.PerformLayout(); this.mainPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.KeyPictureBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lockIcon)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
#endregion #endregion
private System.Windows.Forms.Button OkButton; private System.Windows.Forms.Button okButton;
private System.Windows.Forms.PictureBox EyePictureBox; private System.Windows.Forms.PictureBox keyEyeIcon;
private System.Windows.Forms.ToolTip toolTip1; private System.Windows.Forms.Panel mainPanel;
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Label fileNameLabel;
private System.Windows.Forms.Label label1; private System.Windows.Forms.PictureBox lockIcon;
private System.Windows.Forms.PictureBox KeyPictureBox; public System.Windows.Forms.TextBox keyTextBox;
public System.Windows.Forms.TextBox KeyTextBox;
} }
} }

View file

@ -15,12 +15,17 @@ public EnterKeyForm()
/*Form Events*/ /*Form Events*/
private void EnterKeyForm_FormClosed(object sender, FormClosedEventArgs e) private void EnterKeyForm_FormClosed(object sender, FormClosedEventArgs e)
{ {
KeyTextBox.Focus(); MainForm main = Owner as MainForm;
keyTextBox.Focus();
if (main.Visible == false)
{
Application.Exit();
}
} }
private void EnterKeyForm_Load(object sender, EventArgs e) private void EnterKeyForm_Load(object sender, EventArgs e)
{ {
Text = PublicVar.openFileName; fileNameLabel.Text = PublicVar.openFileName;
} }
/*Form Events*/ /*Form Events*/
@ -28,31 +33,31 @@ private void EnterKeyForm_Load(object sender, EventArgs e)
/*Enter key area*/ /*Enter key area*/
private void KeyTextBox_TextChanged(object sender, EventArgs e) private void KeyTextBox_TextChanged(object sender, EventArgs e)
{ {
if (KeyTextBox.Text.Length > 0) if (keyTextBox.Text.Length > 0)
OkButton.Enabled = true; okButton.Enabled = true;
else else
OkButton.Enabled = false; okButton.Enabled = false;
} }
private void KeyTextBox_KeyDown(object sender, KeyEventArgs e) private void KeyTextBox_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter && OkButton.Enabled) if (e.KeyCode == Keys.Enter && okButton.Enabled)
{ {
OkButton_Click(sender, e); OkButton_Click(sender, e);
} }
} }
private void EyePictureBox_Click(object sender, EventArgs e) private void KeyEyeIcon_Click(object sender, EventArgs e)
{ {
if (KeyTextBox.UseSystemPasswordChar) if (keyTextBox.UseSystemPasswordChar)
{ {
KeyTextBox.UseSystemPasswordChar = false; keyTextBox.UseSystemPasswordChar = false;
EyePictureBox.Image = Properties.Resources.eye; keyEyeIcon.Image = Properties.Resources.eye;
} }
else else
{ {
KeyTextBox.UseSystemPasswordChar = true; keyTextBox.UseSystemPasswordChar = true;
EyePictureBox.Image = Properties.Resources.eye_half; keyEyeIcon.Image = Properties.Resources.eye_half;
} }
} }
/*Enter key area*/ /*Enter key area*/
@ -61,11 +66,13 @@ private void EyePictureBox_Click(object sender, EventArgs e)
/*Buttons*/ /*Buttons*/
private void OkButton_Click(object sender, EventArgs e) private void OkButton_Click(object sender, EventArgs e)
{ {
TypedPassword.Value = KeyTextBox.Text; TypedPassword.Value = keyTextBox.Text;
KeyTextBox.Focus(); keyTextBox.Focus();
PublicVar.okPressed = true; PublicVar.okPressed = true;
Hide(); Hide();
} }
/*Buttons*/ /*Buttons*/
} }
} }

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -117,20 +117,20 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="MainMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="mainMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="EditorMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="contextMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>318, 17</value> <value>389, 17</value>
</metadata> </metadata>
<metadata name="OpenFile.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>127, 17</value> <value>127, 17</value>
</metadata> </metadata>
<metadata name="SaveFile.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="saveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>227, 17</value> <value>260, 17</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="CloseSearchPanel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="closeSearchPanel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAABidJREFUaEPt iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAABidJREFUaEPt
mE1oVFcUx6WIiBQJIRQRCaVI6CILKV0UKdJF6EKkC+miiJSCjUKIRUyC4EIwYpoQQ0g0UfNhNIlfWSTi mE1oVFcUx6WIiBQJIRQRCaVI6CILKV0UKdJF6EKkC+miiJSCjUKIRUyC4EIwYpoQQ0g0UfNhNIlfWSTi
@ -162,7 +162,7 @@
JzlZhqxb9y/IfsJRyFDF/QAAAABJRU5ErkJggg== JzlZhqxb9y/IfsJRyFDF/QAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<data name="LockToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="lockToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIdSURBVDhPlZPdS5NRHMd/5zkQeNtFF0H9A9aVBF12 dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIdSURBVDhPlZPdS5NRHMd/5zkQeNtFF0H9A9aVBF12
@ -177,22 +177,7 @@
goY2mgS7SsUYcuxWrXAyZkLQFLRUooHf+v9Ea6jkD7YQxEPE9EcrAAAAAElFTkSuQmCC goY2mgS7SsUYcuxWrXAyZkLQFLRUooHf+v9Ea6jkD7YQxEPE9EcrAAAAAElFTkSuQmCC
</value> </value>
</data> </data>
<data name="SettingsToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="newToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIWSURBVDhPpZBPaJJxGMd/TkXEDnqxUSkjlBFqjFcY
vnUQBkOmHvx3D08R0SkQiuowiBF0WMyddmlQu294ytZgyTvwFXS+ko1smbyu4V0CL0+/70v+eKOgw4SP
v4fv83m+goyILoTxlUwmWTqdZtlsluVyOeMtFAoy5+5vZPMOLm7+KshkMre4cI+/V/FOJhMaj8dkzuD8
syCVSt0ulUrro9GIisXiYy7dPzsbEsCMDDs4cP8oSCQS4EG/3ydVrdNwqFOlUvmi6zoBzL1ez9jBgYsb
USDLMovH49fy+fyz4+MWtVpNOj39SoPBdwPMyLCDAxc3oiAWi8V58BBsb7/udToa7ey87YbD4U2AGRl2
Uw83okCSpFKjodLBwQc6OlKo3W5TJHJzzWq1MoAZGXZw4OJGFIRCoUe1Wo2q1Srh1bRPtLAgrVosFgYw
IzM7uBEFwWBwORAIPAEbG+VvzWaH9vbeN6PRxacAMzLsph5uRIHf72c+n29OkqIvFaVB+/sf6eREp/Pz
nwaYkWEHBy5uRIHX6wWritKi3d13dHjYoHJ5q1+vdwhgRoYdHLi4EQUejwesLC0tv1HVzzQ/f+OV2+1+
rigaP9AIMzLs4MDFjSjAx2azMafTmXS5XGsOh+M63m73B/9DB2TO4MDFx1yA5DInxIkCu91+hx+9AJin
OSfCmeXYzAUznEscL+fKf8APwZ0hIvYLhJTqJrA/zJYAAAAASUVORK5CYII=
</value>
</data>
<data name="NewToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAINSURBVDhPhZJLaFNREIZ/YhWDUGyoiopCoBGpRVu7 dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAINSURBVDhPhZJLaFNREIZ/YhWDUGyoiopCoBGpRVu7
@ -207,7 +192,7 @@
ls8mjzluOrP5k2QAWNYAQ/B729ITVjwAAAAASUVORK5CYII= ls8mjzluOrP5k2QAWNYAQ/B729ITVjwAAAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="ChangeKeyToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="changeKeyToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIfSURBVDhPfYxdSJNhFMfPu/VJhd4E5UVEETFyk+gq dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIfSURBVDhPfYxdSJNhFMfPu/VJhd4E5UVEETFyk+gq
@ -222,86 +207,7 @@
RRikjjTQklhLlO0sA7vNDBHLBqineQexiSgllv3rIPwBd+IjYDkT9I0AAAAASUVORK5CYII= RRikjjTQklhLlO0sA7vNDBHLBqineQexiSgllv3rIPwBd+IjYDkT9I0AAAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="PasteToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="openToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGDSURBVDhPjZC9S0JRGIffJaEtHAqCpiAQHIowIoja
oqXB7B9osckhgoKGhqCwCKQSrKHI0CD8P1wOGE1pIhFWJorlJ36+nZ94Tg5x6MBzOZz3ec69XDpfoC7+
xV+2lm0Wl8vllLh7OHHW76iu/4ILiQAHU/QQ3PG8JxJJBtjjTM3h6gvO5KOHiPvXObLh4Gj0kWOxJ06l
0l2wxxlmcOCqjnzzGsFyBYO37PUecyBwyaHQHd/fR/jq+oZ9vlMOh++gMFzV0cmcRnTksNXp8HMy+SeY
wYGrOjqa1YimFOqtlhE4cFVHhw6NqLfbXGk0jMCBqzran9aIarPJ37WaEThwVUd7kxpRkm/Il8tG4MBV
He3aNeKrXudMsWgEDlzV0bZNI/LyE9OFghE4cFVHmxMaka1W+SWXMwIHrupodZTIM95FfFQqnMxmjcCB
iwZtd62MELnHSLzJnxTPZIzAgYtGrUHJ8NoQiU/5g15LJSNw4KLptWSV2GcGKLxkIfEf4KIhIusPcc1e
G4vRUecAAAAASUVORK5CYII=
</value>
</data>
<data name="CopyToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVDhPjZHLK4RRGIffjQVSZqMoKcxCmo2NkgxR
w+QeNZvZWDA0yQgNTTM7/gD5C1zTNLEgNbkM+1naWUihyGXM/fZ6fx+jz0E59dSZvvM+necMjXi9NOrz
9Qnjf1A/7PHQ4OIizmn0j3SStbGEjBVFRPgoOGLZLD8lk3wfj/PN2xtfRyK8f37O+CYY9YKCsMViJm0j
TEbTaX6MRvn25YWvHh748u6ONw8PGQvfBaMqGHC7iXrn58FULJPh51hMkwTDYd4+O+OltbUvOhyOPRn+
lqQJul0u4ExIwmsioUkCFxf8nyRN0OV0gumUDERlAJKAHPxPkiZon5gAM+lcjuMyBIk/FGJ9UkGyurHx
hbGnxyMQtY6NgdlsPs9JGYLEf3rK+iT1JshBNvKp2W4HczkRZGQIkt3jY9YnqZIb2SMb+dRks4GFvLRl
JQOSnWCQ9UmqBA+LbOSTaWgIuPE4ebkFJFtHR6xPUiXPqRQjG/lUbDBQtdnsgwALN1k/OGB9kiqJyG9k
C4RVU1pX5yozmVYK1FssJ/okVYK/GNnIxyoXKoWqAg1W67J2m88kVRKXPbJr29rk+M9VriYhB2+Ch8W/
k5I9zshZw8fI9/Uj6Tdwhohq3wHeYoLJhJ4gHAAAAABJRU5ErkJggg==
</value>
</data>
<data name="CutToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAICSURBVDhPpZA/aFNRFMbP3YMoUtRoKDzInyfIG8Ir
1CXJkCEkXRKXkm6pk0vQUsIdq9LOghQtgqOWUq2DiAXJUCiUQqQ8CgYHg0qGLC4OKub4fddY3iAuXvhx
cs73JyGiqv+F1Ot1aTQacyCo1WpSKpUkDEPJ5XKSSqXc5M47dfroZ84V8NhqtSypVqvBvwqo//Ey5wr4
0um07fV62mw2bbFYDP5WwDt1+uhn7qQAL8hkMjaKIsVPs/l8PogXcOedOn30MxQv4Auy2azt9/taqVQs
jAELOLnzTp2+3/ZJwQ1jpA2uAjx+sx0MBlooFGwymbzGyZ136vTRz5wrOMaHD+Az2AIwBL7v2+FwqOVy
+XW321XuvFOnj37m4gWJT8bMg3tgc9uY3dueF41GI91LJKIj7LxP9Hn64wWJ98bcHc3OHv5YWvqiq6tj
XVvTo3Zb34h85WcH7tTpo585V/DWmIWPMzM9mp573rv7Ioc/V1b0FSZY5+TOO3X66GfOFewZ8yge/ra8
rDuYL0QWXuJf4+TOe7zE5VjwTGQX4pji905Hn2A+RegOwk3AyZ136pMvGTPnCh6IPDwIwyFbH0PswHwZ
ofjjzjt1+uhnzhX4IiUsG2B/UeQWvFdAGkyDi+AS8IB/XeQmffQz5wrwkjEugHPgLDgNTk04A6bAeXDi
V1X5BcIraIltHRGHAAAAAElFTkSuQmCC
</value>
</data>
<data name="DeleteFileToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHMSURBVDhPjZJNKMNxGMefo+W2Ay4OyhyktDlYCqWU
FSJTDihlWCxNa8vrJOXm4oBch4MTh7krN0cOTiIbaXnZ+/vj+f7bz2H489Tn8P/1fD89v+f/I/vamsaw
398nTP1B/dDqKg0uLdHA4iL1j7UT4aDEdCKf57dMhl+SSQ7F4/wQi/F9NKpxenHB6BFMSgA0W4mZWDbL
EQk+fXzwXSTCt8/PfBMO83UoxIfBIKPQJ5i+BP0+n8IZF8FrIvGjZCcQ+MJks60IBKjX41HMJnM5fpfx
f5NgElwHvSpHPW63Yi4lO4imUroSCNCrctTtcilcaRHE02ldCRaLXpWjLqdTMZ8tFDgpe9CT4O+gV+Wo
w+FQuHMiSMse9CQvcoZelaO2iQnFQr5Y5IxcQ0+Cd4JeZNxmM1Hr6KjCUxABptCTROUMvds1NXRMUi0j
IwpvUR5KXgTlksvJSQ6azRrnFgsfGAyPEr46Itqn+s5OarbbgQ8vrShTlEtOJJQaH//GnkgwBNVardRg
sy1DgCqXnDkcvCsSsCd4KypC6xLexARSBqGq2mrdKOW1wnWwEywWIvxivJOMfKMXmVKWjEKToa5uobKx
ces/oBcZIjJ+Aga8g1BwXIV5AAAAAElFTkSuQmCC
</value>
</data>
<data name="FileLocationToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAErSURBVDhPpdPPKwRxGMfxz2n/BAd/xPwPTv4Kpz0o
JweJIu1uY9fvbJRVm1olEslhD7IHpbB2oyRlCyXLxGgy27Zr2vn4PuKAmfLl8Dp8v8/zPj4g+S8oJsOV
UjCUWAhDdmQxqiTCtHyfbqPBquOwYlnsOPJp5Gv8mEdxYMKku0nfWf9C/qzy2Lvvs8+5tNhPINWyV+nd
535oqcVq0eTV7kAgabEXw4RnLbN5mw30qmZBvKcVSovCCKabd0usXy9okUZa7AwhXb/J0L1Ma5FGWuQH
MV+rzNE5n9IijbTY7kfm5WKG9mlSizTSYqMPWedsnI+luBZppMVaL3LPJ6N8OBzWIo20WOzGlqMe9nFc
izTSoqcTs5NdKPyFtOoaEFHalHZN0kQCT/T3iDdSiLGOilD6aAAAAABJRU5ErkJggg==
</value>
</data>
<data name="SaveToolBarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFlSURBVDhPpZE9S8NQFIZvwL2j4ODSX1EQl6wdumQJ
mUpjCYEMhQyBULBk8reIiCC2WKSmKH6UgtShwcFFKGpBC7WUBnK877WBO0iIGHg43JPnfQO5jIj+BVMU
BexzDmU0Tdv7jfX7HY7IpgVHQRCQaZrUbDbFHI8jGo0eBTinu3K5/A6fsysXHCNoGAY5jiPmYPBA/f6N
AOd0h9lqtQgZueDE932qVCpUq9XEDMN76nRCAc7pDhMuMnLBqed5pKoq6bouZrd7R+32taDXGwqwwzu4
yMgFbdd1qVQq5QIuMnLBeaPRIMuycgEXGbngAj8viiJK+OVmAQcuMnLBpW3bFCcJLeM4EzhwkZELrur1
On1x4XOxyAQOXGTkgltc38dySZPZLBM4cJGRC4bVapVe+Reep9NM4MBFRhSsnye0vq1W9DKfZwIHLjI/
Uca2OWecyUaxeJAHuOsMsqzA2eRs/RGeYYVv7UIHk0nmOkIAAAAASUVORK5CYII=
</value>
</data>
<data name="OpenToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVDhPjdJdSFNhGMDx5y76urDLDLqwXZkRQXRh dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVDhPjdJdSFNhGMDx5y76urDLDLqwXZkRQXRh
@ -318,6 +224,103 @@
u7r+J0CWQSMFUJ+AneXHQVYsgYfkq63E5n+DmN//44T3M7snJAAAAABJRU5ErkJggg== u7r+J0CWQSMFUJ+AneXHQVYsgYfkq63E5n+DmN//44T3M7snJAAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<data name="pasteToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGDSURBVDhPjZC9S0JRGIffJaEtHAqCpiAQHIowIoja
oqXB7B9osckhgoKGhqCwCKQSrKHI0CD8P1wOGE1pIhFWJorlJ36+nZ94Tg5x6MBzOZz3ec69XDpfoC7+
xV+2lm0Wl8vllLh7OHHW76iu/4ILiQAHU/QQ3PG8JxJJBtjjTM3h6gvO5KOHiPvXObLh4Gj0kWOxJ06l
0l2wxxlmcOCqjnzzGsFyBYO37PUecyBwyaHQHd/fR/jq+oZ9vlMOh++gMFzV0cmcRnTksNXp8HMy+SeY
wYGrOjqa1YimFOqtlhE4cFVHhw6NqLfbXGk0jMCBqzran9aIarPJ37WaEThwVUd7kxpRkm/Il8tG4MBV
He3aNeKrXudMsWgEDlzV0bZNI/LyE9OFghE4cFVHmxMaka1W+SWXMwIHrupodZTIM95FfFQqnMxmjcCB
iwZtd62MELnHSLzJnxTPZIzAgYtGrUHJ8NoQiU/5g15LJSNw4KLptWSV2GcGKLxkIfEf4KIhIusPcc1e
G4vRUecAAAAASUVORK5CYII=
</value>
</data>
<data name="saveToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFlSURBVDhPpZE9S8NQFIZvwL2j4ODSX1EQl6wdumQJ
mUpjCYEMhQyBULBk8reIiCC2WKSmKH6UgtShwcFFKGpBC7WUBnK877WBO0iIGHg43JPnfQO5jIj+BVMU
BexzDmU0Tdv7jfX7HY7IpgVHQRCQaZrUbDbFHI8jGo0eBTinu3K5/A6fsysXHCNoGAY5jiPmYPBA/f6N
AOd0h9lqtQgZueDE932qVCpUq9XEDMN76nRCAc7pDhMuMnLBqed5pKoq6bouZrd7R+32taDXGwqwwzu4
yMgFbdd1qVQq5QIuMnLBeaPRIMuycgEXGbngAj8viiJK+OVmAQcuMnLBpW3bFCcJLeM4EzhwkZELrur1
On1x4XOxyAQOXGTkgltc38dySZPZLBM4cJGRC4bVapVe+Reep9NM4MBFRhSsnye0vq1W9DKfZwIHLjI/
Uca2OWecyUaxeJAHuOsMsqzA2eRs/RGeYYVv7UIHk0nmOkIAAAAASUVORK5CYII=
</value>
</data>
<data name="copyToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVDhPjZHLK4RRGIffjQVSZqMoKcxCmo2NkgxR
w+QeNZvZWDA0yQgNTTM7/gD5C1zTNLEgNbkM+1naWUihyGXM/fZ6fx+jz0E59dSZvvM+necMjXi9NOrz
9Qnjf1A/7PHQ4OIizmn0j3SStbGEjBVFRPgoOGLZLD8lk3wfj/PN2xtfRyK8f37O+CYY9YKCsMViJm0j
TEbTaX6MRvn25YWvHh748u6ONw8PGQvfBaMqGHC7iXrn58FULJPh51hMkwTDYd4+O+OltbUvOhyOPRn+
lqQJul0u4ExIwmsioUkCFxf8nyRN0OV0gumUDERlAJKAHPxPkiZon5gAM+lcjuMyBIk/FGJ9UkGyurHx
hbGnxyMQtY6NgdlsPs9JGYLEf3rK+iT1JshBNvKp2W4HczkRZGQIkt3jY9YnqZIb2SMb+dRks4GFvLRl
JQOSnWCQ9UmqBA+LbOSTaWgIuPE4ebkFJFtHR6xPUiXPqRQjG/lUbDBQtdnsgwALN1k/OGB9kiqJyG9k
C4RVU1pX5yozmVYK1FssJ/okVYK/GNnIxyoXKoWqAg1W67J2m88kVRKXPbJr29rk+M9VriYhB2+Ch8W/
k5I9zshZw8fI9/Uj6Tdwhohq3wHeYoLJhJ4gHAAAAABJRU5ErkJggg==
</value>
</data>
<data name="fileLocationToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAErSURBVDhPpdPPKwRxGMfxz2n/BAd/xPwPTv4Kpz0o
JweJIu1uY9fvbJRVm1olEslhD7IHpbB2oyRlCyXLxGgy27Zr2vn4PuKAmfLl8Dp8v8/zPj4g+S8oJsOV
UjCUWAhDdmQxqiTCtHyfbqPBquOwYlnsOPJp5Gv8mEdxYMKku0nfWf9C/qzy2Lvvs8+5tNhPINWyV+nd
535oqcVq0eTV7kAgabEXw4RnLbN5mw30qmZBvKcVSovCCKabd0usXy9okUZa7AwhXb/J0L1Ma5FGWuQH
MV+rzNE5n9IijbTY7kfm5WKG9mlSizTSYqMPWedsnI+luBZppMVaL3LPJ6N8OBzWIo20WOzGlqMe9nFc
izTSoqcTs5NdKPyFtOoaEFHalHZN0kQCT/T3iDdSiLGOilD6aAAAAABJRU5ErkJggg==
</value>
</data>
<data name="cutToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAICSURBVDhPpZA/aFNRFMbP3YMoUtRoKDzInyfIG8Ir
1CXJkCEkXRKXkm6pk0vQUsIdq9LOghQtgqOWUq2DiAXJUCiUQqQ8CgYHg0qGLC4OKub4fddY3iAuXvhx
cs73JyGiqv+F1Ot1aTQacyCo1WpSKpUkDEPJ5XKSSqXc5M47dfroZ84V8NhqtSypVqvBvwqo//Ey5wr4
0um07fV62mw2bbFYDP5WwDt1+uhn7qQAL8hkMjaKIsVPs/l8PogXcOedOn30MxQv4Auy2azt9/taqVQs
jAELOLnzTp2+3/ZJwQ1jpA2uAjx+sx0MBlooFGwymbzGyZ136vTRz5wrOMaHD+Az2AIwBL7v2+FwqOVy
+XW321XuvFOnj37m4gWJT8bMg3tgc9uY3dueF41GI91LJKIj7LxP9Hn64wWJ98bcHc3OHv5YWvqiq6tj
XVvTo3Zb34h85WcH7tTpo585V/DWmIWPMzM9mp573rv7Ioc/V1b0FSZY5+TOO3X66GfOFewZ8yge/ra8
rDuYL0QWXuJf4+TOe7zE5VjwTGQX4pji905Hn2A+RegOwk3AyZ136pMvGTPnCh6IPDwIwyFbH0PswHwZ
ofjjzjt1+uhnzhX4IiUsG2B/UeQWvFdAGkyDi+AS8IB/XeQmffQz5wrwkjEugHPgLDgNTk04A6bAeXDi
V1X5BcIraIltHRGHAAAAAElFTkSuQmCC
</value>
</data>
<data name="deleteFileToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHMSURBVDhPjZJNKMNxGMefo+W2Ay4OyhyktDlYCqWU
FSJTDihlWCxNa8vrJOXm4oBch4MTh7krN0cOTiIbaXnZ+/vj+f7bz2H489Tn8P/1fD89v+f/I/vamsaw
398nTP1B/dDqKg0uLdHA4iL1j7UT4aDEdCKf57dMhl+SSQ7F4/wQi/F9NKpxenHB6BFMSgA0W4mZWDbL
EQk+fXzwXSTCt8/PfBMO83UoxIfBIKPQJ5i+BP0+n8IZF8FrIvGjZCcQ+MJks60IBKjX41HMJnM5fpfx
f5NgElwHvSpHPW63Yi4lO4imUroSCNCrctTtcilcaRHE02ldCRaLXpWjLqdTMZ8tFDgpe9CT4O+gV+Wo
w+FQuHMiSMse9CQvcoZelaO2iQnFQr5Y5IxcQ0+Cd4JeZNxmM1Hr6KjCUxABptCTROUMvds1NXRMUi0j
IwpvUR5KXgTlksvJSQ6azRrnFgsfGAyPEr46Itqn+s5OarbbgQ8vrShTlEtOJJQaH//GnkgwBNVardRg
sy1DgCqXnDkcvCsSsCd4KypC6xLexARSBqGq2mrdKOW1wnWwEywWIvxivJOMfKMXmVKWjEKToa5uobKx
ces/oBcZIjJ+Aga8g1BwXIV5AAAAAElFTkSuQmCC
</value>
</data>
<data name="settingsToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIWSURBVDhPpZBPaJJxGMd/TkXEDnqxUSkjlBFqjFcY
vnUQBkOmHvx3D08R0SkQiuowiBF0WMyddmlQu294ytZgyTvwFXS+ko1smbyu4V0CL0+/70v+eKOgw4SP
v4fv83m+goyILoTxlUwmWTqdZtlsluVyOeMtFAoy5+5vZPMOLm7+KshkMre4cI+/V/FOJhMaj8dkzuD8
syCVSt0ulUrro9GIisXiYy7dPzsbEsCMDDs4cP8oSCQS4EG/3ydVrdNwqFOlUvmi6zoBzL1ez9jBgYsb
USDLMovH49fy+fyz4+MWtVpNOj39SoPBdwPMyLCDAxc3oiAWi8V58BBsb7/udToa7ey87YbD4U2AGRl2
Uw83okCSpFKjodLBwQc6OlKo3W5TJHJzzWq1MoAZGXZw4OJGFIRCoUe1Wo2q1Srh1bRPtLAgrVosFgYw
IzM7uBEFwWBwORAIPAEbG+VvzWaH9vbeN6PRxacAMzLsph5uRIHf72c+n29OkqIvFaVB+/sf6eREp/Pz
nwaYkWEHBy5uRIHX6wWritKi3d13dHjYoHJ5q1+vdwhgRoYdHLi4EQUejwesLC0tv1HVzzQ/f+OV2+1+
rigaP9AIMzLs4MDFjSjAx2azMafTmXS5XGsOh+M63m73B/9DB2TO4MDFx1yA5DInxIkCu91+hx+9AJin
OSfCmeXYzAUznEscL+fKf8APwZ0hIvYLhJTqJrA/zJYAAAAASUVORK5CYII=
</value>
</data>
<metadata name="statusPanel.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>513, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>55</value> <value>55</value>
</metadata> </metadata>

View file

@ -12,20 +12,20 @@ class CenterWinDialog : IDisposable
public CenterWinDialog(Form owner) public CenterWinDialog(Form owner)
{ {
mOwner = owner; mOwner = owner;
owner.BeginInvoke(new MethodInvoker(findDialog)); owner.BeginInvoke(new MethodInvoker(FindDialog));
} }
private void findDialog() private void FindDialog()
{ {
// Enumerate windows to find the message box // Enumerate windows to find the message box
if (mTries < 0) return; if (mTries < 0) return;
EnumThreadWndProc callback = new EnumThreadWndProc(checkWindow); EnumThreadWndProc callback = new EnumThreadWndProc(CheckWindow);
if (EnumThreadWindows(GetCurrentThreadId(), callback, IntPtr.Zero)) if (EnumThreadWindows(GetCurrentThreadId(), callback, IntPtr.Zero))
{ {
if (++mTries < 10) mOwner.BeginInvoke(new MethodInvoker(findDialog)); if (++mTries < 10) mOwner.BeginInvoke(new MethodInvoker(FindDialog));
} }
} }
private bool checkWindow(IntPtr hWnd, IntPtr lp) private bool CheckWindow(IntPtr hWnd, IntPtr lp)
{ {
// Checks if <hWnd> is a dialog // Checks if <hWnd> is a dialog
StringBuilder sb = new StringBuilder(260); StringBuilder sb = new StringBuilder(260);
@ -33,8 +33,7 @@ private bool checkWindow(IntPtr hWnd, IntPtr lp)
if (sb.ToString() != "#32770") return true; if (sb.ToString() != "#32770") return true;
// Got it // Got it
Rectangle frmRect = new Rectangle(mOwner.Location, mOwner.Size); Rectangle frmRect = new Rectangle(mOwner.Location, mOwner.Size);
RECT dlgRect; GetWindowRect(hWnd, out RECT dlgRect);
GetWindowRect(hWnd, out dlgRect);
MoveWindow(hWnd, MoveWindow(hWnd,
frmRect.Left + (frmRect.Width - dlgRect.Right + dlgRect.Left) / 2, frmRect.Left + (frmRect.Width - dlgRect.Right + dlgRect.Left) / 2,
frmRect.Top + (frmRect.Height - dlgRect.Bottom + dlgRect.Top) / 2, frmRect.Top + (frmRect.Height - dlgRect.Bottom + dlgRect.Top) / 2,