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

View file

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

View file

@ -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);
appVersionLabel.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
}
private void AboutFrom_Click(object sender, EventArgs e)
{
AppLogoPictureBox.Focus();
appLogo.Focus();
}
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");
}
private void AuthorLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
private void AuthorLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
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");
}
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");
}
private void AppLogoPictureBox_Click(object sender, EventArgs e)
private void AppLogo_Click(object sender, EventArgs e)
{
Process.Start("https://crypto-notepad.github.io/");
}
@ -65,12 +65,12 @@ private void AppLogoPictureBox_Click(object sender, EventArgs e)
/*Perform open links*/
private void TPDRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
private void ThirdPartyDevList_LinkClicked(object sender, LinkClickedEventArgs e)
{
Process.Start(e.LinkText);
}
private void ContributorsRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
private void ContributorsList_LinkClicked(object sender, LinkClickedEventArgs e)
{
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>
</resheader>
<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>
iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH
DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp
@ -367,7 +367,7 @@
oG+yCQAAejY86/8DNhf6iwbS6s8AAAAASUVORK5CYII=
</value>
</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
CustomSettingsProvider: http://www.codeproject.com/Articles/20917/Settings-Provider
MsgBoxCenterParent: http://stackoverflow.com/a/2576220/4430027

View file

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

View file

@ -15,37 +15,37 @@ public ChangeKeyForm()
/*Buttons*/
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;
OldKeyTextBox.Text = "";
NewKeyTextBox.Text = "";
StatusLabel.Text = "Key was successfully changed";
StatusLabel.Visible = true;
AcceptButton.Enabled = false;
oldKeyTextBox.Text = "";
newKeyTextBox.Text = "";
statusLabel.Text = "Key was successfully changed";
statusLabel.Visible = true;
acceptButton.Enabled = false;
await Task.Delay(2000);
StatusLabel.Text = "";
statusLabel.Text = "";
return;
}
if (OldKeyTextBox.Text != PublicVar.encryptionKey.Get())
if (oldKeyTextBox.Text != PublicVar.encryptionKey.Get())
{
SystemSounds.Beep.Play();
StatusLabel.Text = "Invalid old key";
StatusLabel.Visible = true;
OldKeyTextBox.Text = "";
NewKeyTextBox.Text = "";
statusLabel.Text = "Invalid old key";
statusLabel.Visible = true;
oldKeyTextBox.Text = "";
newKeyTextBox.Text = "";
return;
}
if (OldKeyTextBox.Text == NewKeyTextBox.Text)
if (oldKeyTextBox.Text == newKeyTextBox.Text)
{
SystemSounds.Beep.Play();
StatusLabel.Text = "New key is the same as old";
StatusLabel.Visible = true;
OldKeyTextBox.Text = "";
NewKeyTextBox.Text = "";
statusLabel.Text = "New key is the same as old";
statusLabel.Visible = true;
oldKeyTextBox.Text = "";
newKeyTextBox.Text = "";
return;
}
}
@ -53,55 +53,55 @@ private async void AcceptButton_Click(object sender, EventArgs e)
/*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;
EyePictureBox1.Image = Properties.Resources.eye;
oldKeyTextBox.UseSystemPasswordChar = false;
oldKeyEyeIcon.Image = Properties.Resources.eye;
}
else
{
OldKeyTextBox.UseSystemPasswordChar = true;
EyePictureBox1.Image = Properties.Resources.eye_half;
oldKeyTextBox.UseSystemPasswordChar = true;
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;
EyePictureBox2.Image = Properties.Resources.eye;
newKeyTextBox.UseSystemPasswordChar = false;
newKeyEyeIcon.Image = Properties.Resources.eye;
}
else
{
NewKeyTextBox.UseSystemPasswordChar = true;
EyePictureBox2.Image = Properties.Resources.eye_half;
newKeyTextBox.UseSystemPasswordChar = true;
newKeyEyeIcon.Image = Properties.Resources.eye_half;
}
}
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
{
AcceptButton.Enabled = false;
acceptButton.Enabled = false;
}
}
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
{
AcceptButton.Enabled = false;
acceptButton.Enabled = false;
}
}
/*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">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
@ -104,7 +104,7 @@
<DependentUpon>ChangeKeyForm.cs</DependentUpon>
</Compile>
<Compile Include="EncryptedString.cs" />
<Compile Include="linenum_rtf.cs">
<Compile Include="LineNumbers.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="MainForm.cs">

View file

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

View file

@ -15,12 +15,17 @@ public EnterKeyForm()
/*Form Events*/
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)
{
Text = PublicVar.openFileName;
fileNameLabel.Text = PublicVar.openFileName;
}
/*Form Events*/
@ -28,31 +33,31 @@ private void EnterKeyForm_Load(object sender, EventArgs e)
/*Enter key area*/
private void KeyTextBox_TextChanged(object sender, EventArgs e)
{
if (KeyTextBox.Text.Length > 0)
OkButton.Enabled = true;
if (keyTextBox.Text.Length > 0)
okButton.Enabled = true;
else
OkButton.Enabled = false;
okButton.Enabled = false;
}
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);
}
}
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;
EyePictureBox.Image = Properties.Resources.eye;
keyTextBox.UseSystemPasswordChar = false;
keyEyeIcon.Image = Properties.Resources.eye;
}
else
{
KeyTextBox.UseSystemPasswordChar = true;
EyePictureBox.Image = Properties.Resources.eye_half;
keyTextBox.UseSystemPasswordChar = true;
keyEyeIcon.Image = Properties.Resources.eye_half;
}
}
/*Enter key area*/
@ -61,11 +66,13 @@ private void EyePictureBox_Click(object sender, EventArgs e)
/*Buttons*/
private void OkButton_Click(object sender, EventArgs e)
{
TypedPassword.Value = KeyTextBox.Text;
KeyTextBox.Focus();
TypedPassword.Value = keyTextBox.Text;
keyTextBox.Focus();
PublicVar.okPressed = true;
Hide();
}
/*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">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</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>
</metadata>
<metadata name="EditorMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>318, 17</value>
<metadata name="contextMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>389, 17</value>
</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>
</metadata>
<metadata name="SaveFile.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>227, 17</value>
<metadata name="saveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>260, 17</value>
</metadata>
<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>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAABidJREFUaEPt
mE1oVFcUx6WIiBQJIRQRCaVI6CILKV0UKdJF6EKkC+miiJSCjUKIRUyC4EIwYpoQQ0g0UfNhNIlfWSTi
@ -162,7 +162,7 @@
JzlZhqxb9y/IfsJRyFDF/QAAAABJRU5ErkJggg==
</value>
</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>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIdSURBVDhPlZPdS5NRHMd/5zkQeNtFF0H9A9aVBF12
@ -177,22 +177,7 @@
goY2mgS7SsUYcuxWrXAyZkLQFLRUooHf+v9Ea6jkD7YQxEPE9EcrAAAAAElFTkSuQmCC
</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>
<data name="NewToolbarButton.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
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAINSURBVDhPhZJLaFNREIZ/YhWDUGyoiopCoBGpRVu7
@ -207,7 +192,7 @@
ls8mjzluOrP5k2QAWNYAQ/B729ITVjwAAAAASUVORK5CYII=
</value>
</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>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIfSURBVDhPfYxdSJNhFMfPu/VJhd4E5UVEETFyk+gq
@ -222,86 +207,7 @@
RRikjjTQklhLlO0sA7vNDBHLBqineQexiSgllv3rIPwBd+IjYDkT9I0AAAAASUVORK5CYII=
</value>
</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="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">
<data name="openToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVDhPjdJdSFNhGMDx5y76urDLDLqwXZkRQXRh
@ -318,6 +224,103 @@
u7r+J0CWQSMFUJ+AneXHQVYsgYfkq63E5n+DmN//44T3M7snJAAAAABJRU5ErkJggg==
</value>
</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">
<value>55</value>
</metadata>

View file

@ -12,20 +12,20 @@ class CenterWinDialog : IDisposable
public CenterWinDialog(Form 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
if (mTries < 0) return;
EnumThreadWndProc callback = new EnumThreadWndProc(checkWindow);
EnumThreadWndProc callback = new EnumThreadWndProc(CheckWindow);
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
StringBuilder sb = new StringBuilder(260);
@ -33,8 +33,7 @@ private bool checkWindow(IntPtr hWnd, IntPtr lp)
if (sb.ToString() != "#32770") return true;
// Got it
Rectangle frmRect = new Rectangle(mOwner.Location, mOwner.Size);
RECT dlgRect;
GetWindowRect(hWnd, out dlgRect);
GetWindowRect(hWnd, out RECT dlgRect);
MoveWindow(hWnd,
frmRect.Left + (frmRect.Width - dlgRect.Right + dlgRect.Left) / 2,
frmRect.Top + (frmRect.Height - dlgRect.Bottom + dlgRect.Top) / 2,