Confirm save file when drag and drop

This commit is contained in:
Sigmanor 2017-02-05 22:47:31 +02:00
parent 302636701d
commit ac7706da33
6 changed files with 237 additions and 142 deletions

View file

@ -81,11 +81,6 @@ public void InitializeComponent()
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.searchTextBox = new System.Windows.Forms.TextBox();
this.chkMatchCase = new System.Windows.Forms.CheckBox();
this.chkMatchWholeWord = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.pictureBox12 = new System.Windows.Forms.PictureBox();
this.pictureBox13 = new System.Windows.Forms.PictureBox();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
@ -99,11 +94,14 @@ public void InitializeComponent()
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.searchTextBox = new System.Windows.Forms.TextBox();
this.chkMatchCase = new System.Windows.Forms.CheckBox();
this.chkMatchWholeWord = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.customRTB = new Crypto_Notepad.CustomRichTextBox();
this.MainMenu.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
@ -117,6 +115,8 @@ public void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// MainMenu
@ -525,90 +525,6 @@ public void InitializeComponent()
this.button2.UseVisualStyleBackColor = true;
this.button2.Visible = false;
//
// searchTextBox
//
this.searchTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.searchTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(35)))));
this.searchTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.searchTextBox.ForeColor = System.Drawing.Color.White;
this.searchTextBox.Location = new System.Drawing.Point(196, 6);
this.searchTextBox.Name = "searchTextBox";
this.searchTextBox.Size = new System.Drawing.Size(303, 14);
this.searchTextBox.TabIndex = 9;
this.searchTextBox.TabStop = false;
this.searchTextBox.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
this.searchTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.searchTextBox_KeyDown);
//
// chkMatchCase
//
this.chkMatchCase.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.chkMatchCase.AutoSize = true;
this.chkMatchCase.ForeColor = System.Drawing.Color.Gainsboro;
this.chkMatchCase.Location = new System.Drawing.Point(95, 5);
this.chkMatchCase.Name = "chkMatchCase";
this.chkMatchCase.Size = new System.Drawing.Size(95, 17);
this.chkMatchCase.TabIndex = 11;
this.chkMatchCase.Text = "Case sensitive";
this.chkMatchCase.UseVisualStyleBackColor = false;
this.chkMatchCase.CheckedChanged += new System.EventHandler(this.chkMatchCase_CheckedChanged);
//
// chkMatchWholeWord
//
this.chkMatchWholeWord.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.chkMatchWholeWord.AutoSize = true;
this.chkMatchWholeWord.BackColor = System.Drawing.Color.Transparent;
this.chkMatchWholeWord.ForeColor = System.Drawing.Color.Gainsboro;
this.chkMatchWholeWord.Location = new System.Drawing.Point(6, 5);
this.chkMatchWholeWord.Name = "chkMatchWholeWord";
this.chkMatchWholeWord.Size = new System.Drawing.Size(83, 17);
this.chkMatchWholeWord.TabIndex = 12;
this.chkMatchWholeWord.Text = "Whole word";
this.chkMatchWholeWord.UseVisualStyleBackColor = false;
this.chkMatchWholeWord.CheckedChanged += new System.EventHandler(this.chkMatchWholeWord_CheckedChanged);
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(35)))));
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.searchTextBox);
this.panel1.Controls.Add(this.chkMatchCase);
this.panel1.Controls.Add(this.chkMatchWholeWord);
this.panel1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.panel1.Location = new System.Drawing.Point(0, 272);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(535, 27);
this.panel1.TabIndex = 13;
this.panel1.Visible = false;
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.Controls.Add(this.pictureBox12);
this.panel2.Controls.Add(this.pictureBox13);
this.panel2.Controls.Add(this.pictureBox5);
this.panel2.Controls.Add(this.pictureBox2);
this.panel2.Controls.Add(this.pictureBox11);
this.panel2.Controls.Add(this.pictureBox10);
this.panel2.Controls.Add(this.pictureBox9);
this.panel2.Controls.Add(this.pictureBox8);
this.panel2.Controls.Add(this.pictureBox7);
this.panel2.Controls.Add(this.pictureBox6);
this.panel2.Controls.Add(this.pictureBox4);
this.panel2.Controls.Add(this.pictureBox3);
this.panel2.Location = new System.Drawing.Point(-1, 25);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(537, 23);
this.panel2.TabIndex = 14;
//
// pictureBox12
//
this.pictureBox12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@ -784,6 +700,90 @@ public void InitializeComponent()
this.pictureBox1.MouseLeave += new System.EventHandler(this.pictureBox1_MouseLeave);
this.pictureBox1.MouseHover += new System.EventHandler(this.pictureBox1_MouseHover);
//
// searchTextBox
//
this.searchTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.searchTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(35)))));
this.searchTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.searchTextBox.ForeColor = System.Drawing.Color.White;
this.searchTextBox.Location = new System.Drawing.Point(196, 6);
this.searchTextBox.Name = "searchTextBox";
this.searchTextBox.Size = new System.Drawing.Size(303, 14);
this.searchTextBox.TabIndex = 9;
this.searchTextBox.TabStop = false;
this.searchTextBox.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
this.searchTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.searchTextBox_KeyDown);
//
// chkMatchCase
//
this.chkMatchCase.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.chkMatchCase.AutoSize = true;
this.chkMatchCase.ForeColor = System.Drawing.Color.Gainsboro;
this.chkMatchCase.Location = new System.Drawing.Point(95, 5);
this.chkMatchCase.Name = "chkMatchCase";
this.chkMatchCase.Size = new System.Drawing.Size(95, 17);
this.chkMatchCase.TabIndex = 11;
this.chkMatchCase.Text = "Case sensitive";
this.chkMatchCase.UseVisualStyleBackColor = false;
this.chkMatchCase.CheckedChanged += new System.EventHandler(this.chkMatchCase_CheckedChanged);
//
// chkMatchWholeWord
//
this.chkMatchWholeWord.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.chkMatchWholeWord.AutoSize = true;
this.chkMatchWholeWord.BackColor = System.Drawing.Color.Transparent;
this.chkMatchWholeWord.ForeColor = System.Drawing.Color.Gainsboro;
this.chkMatchWholeWord.Location = new System.Drawing.Point(6, 5);
this.chkMatchWholeWord.Name = "chkMatchWholeWord";
this.chkMatchWholeWord.Size = new System.Drawing.Size(83, 17);
this.chkMatchWholeWord.TabIndex = 12;
this.chkMatchWholeWord.Text = "Whole word";
this.chkMatchWholeWord.UseVisualStyleBackColor = false;
this.chkMatchWholeWord.CheckedChanged += new System.EventHandler(this.chkMatchWholeWord_CheckedChanged);
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(35)))));
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.searchTextBox);
this.panel1.Controls.Add(this.chkMatchCase);
this.panel1.Controls.Add(this.chkMatchWholeWord);
this.panel1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.panel1.Location = new System.Drawing.Point(0, 272);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(535, 27);
this.panel1.TabIndex = 13;
this.panel1.Visible = false;
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.Controls.Add(this.pictureBox12);
this.panel2.Controls.Add(this.pictureBox13);
this.panel2.Controls.Add(this.pictureBox5);
this.panel2.Controls.Add(this.pictureBox2);
this.panel2.Controls.Add(this.pictureBox11);
this.panel2.Controls.Add(this.pictureBox10);
this.panel2.Controls.Add(this.pictureBox9);
this.panel2.Controls.Add(this.pictureBox8);
this.panel2.Controls.Add(this.pictureBox7);
this.panel2.Controls.Add(this.pictureBox6);
this.panel2.Controls.Add(this.pictureBox4);
this.panel2.Controls.Add(this.pictureBox3);
this.panel2.Location = new System.Drawing.Point(-1, 25);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(537, 23);
this.panel2.TabIndex = 14;
//
// customRTB
//
this.customRTB.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@ -803,6 +803,7 @@ public void InitializeComponent()
this.customRTB.SelectionChanged += new System.EventHandler(this.customRTB_SelectionChanged_1);
this.customRTB.Click += new System.EventHandler(this.customRTB_Click);
this.customRTB.KeyDown += new System.Windows.Forms.KeyEventHandler(this.customRTB_KeyDown);
this.customRTB.KeyUp += new System.Windows.Forms.KeyEventHandler(this.customRTB_KeyUp);
//
// MainWindow
//
@ -828,10 +829,6 @@ public void InitializeComponent()
this.MainMenu.ResumeLayout(false);
this.MainMenu.PerformLayout();
this.contextMenuStrip1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
@ -845,6 +842,10 @@ public void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();

View file

@ -20,7 +20,8 @@ public partial class MainWindow : Form
string filename = "Unnamed.cnp";
string[] args = Environment.GetCommandLineArgs();
int caretPos = 0;
string appName = Assembly.GetExecutingAssembly().GetName().Name + " ";
string appName = Assembly.GetExecutingAssembly().GetName().Name + " ";
string currentFilename;
bool shiftPresed;
public MainWindow()
{
@ -69,6 +70,7 @@ void SaltMAC()
void DecryptAES()
{
publicVar.openFileName = Path.GetFileName(OpenFile.FileName);
Form2 f2 = new Form2();
f2.ShowDialog();
if (publicVar.okPressed == false)
@ -109,6 +111,8 @@ void DecryptAES()
private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
currentFilename = this.Text.Substring(this.Text.LastIndexOf(" ") + 2);
if (OpenFile.ShowDialog() != DialogResult.OK) return;
{
if (!OpenFile.FileName.Contains(".cnp"))
@ -122,7 +126,8 @@ private void openToolStripMenuItem_Click(object sender, EventArgs e)
return;
}
DecryptAES();
saveConfirm();
}
}
@ -193,7 +198,6 @@ private void newToolStripMenuItem_Click_1(object sender, EventArgs e)
private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
{
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
if (string.IsNullOrEmpty(publicVar.encryptionKey))
{
Form2 Form2 = new Form2();
@ -228,6 +232,7 @@ private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
customRTB.Text = noenc;
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
customRTB.Select(Convert.ToInt32(cc), 0);
this.Text = appName + Path.GetFileName(filename);
}
private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
@ -253,11 +258,11 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
try
{
NameWithotPath = Path.GetFileName(args[1]);
NameWithotPath = Path.GetFileName(args[1]);
}
catch (IndexOutOfRangeException)
{
NameWithotPath = Path.GetFileName(OpenFile.FileName);
NameWithotPath = Path.GetFileName(OpenFile.FileName);
}
if (NameWithotPath == "")
@ -428,7 +433,7 @@ private void saveToolStripMenuItem1_Click_1(object sender, EventArgs e)
sw.Close();
customRTB.Text = noenc;
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
customRTB.Select(Convert.ToInt32(cc), 0);
customRTB.Select(Convert.ToInt32(cc), 0);
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
@ -494,7 +499,7 @@ private void deleteFileToolStripMenuItem_Click_1(object sender, EventArgs e)
{
File.Delete(filename);
customRTB.Clear();
publicVar.encryptionKey = "";
publicVar.encryptionKey = "";
pictureBox6.Enabled = false;
pictureBox7.Enabled = false;
pictureBox11.Enabled = false;
@ -676,6 +681,7 @@ private void MainWindow_Activated(object sender, EventArgs e)
{
if (publicVar.settingsChanged == true)
{
publicVar.settingsChanged = false;
customRTB.Font = new Font(ps.RichTextFont, ps.RichTextSize);
customRTB.ForeColor = ps.RichForeColor;
customRTB.BackColor = ps.RichBackColor;
@ -697,6 +703,7 @@ private void MainWindow_Activated(object sender, EventArgs e)
customRTB.Height = h;
customRTB.Location = new Point(0, 48);
}
}
if (publicVar.keyChanged == true)
@ -771,7 +778,7 @@ private void documentationToolStripMenuItem_Click(object sender, EventArgs e)
lockToolStripMenuItem.Enabled = false;
}
if (publicVar.encryptionKey != "")
if (publicVar.encryptionKey != "")
{
changeKeyToolStripMenuItem.Enabled = true;
lockToolStripMenuItem.Enabled = true;
@ -935,9 +942,10 @@ private void pictureBox1_MouseLeave(object sender, EventArgs e)
return;
}
}
void AutoLock(bool minimize)
{
saveToolStripMenuItem1_Click_1(this, new EventArgs());
Form2 f2 = new Form2();
publicVar.encryptionKey = "";
caretPos = customRTB.SelectionStart;
@ -1036,7 +1044,7 @@ private void lockToolStripMenuItem_Click(object sender, EventArgs e)
private void customRTB_Click(object sender, EventArgs e)
{
caretPos = customRTB.SelectionStart;
caretPos = customRTB.SelectionStart;
}
private void customRTB_KeyDown(object sender, KeyEventArgs e)
@ -1057,11 +1065,11 @@ private void customRTB_LinkClicked(object sender, LinkClickedEventArgs e)
}
}
void customRTB_DragDrop(object sender, DragEventArgs e)
private void customRTB_DragDrop(object sender, DragEventArgs e)
{
currentFilename = this.Text.Substring(this.Text.LastIndexOf(" ") + 2);
string[] FileList = (string[])e.Data.GetData(DataFormats.FileDrop, false);
foreach (string file in FileList) OpenFile.FileName = file;
object fname = e.Data.GetData("FileDrop");
if (fname != null)
{
@ -1071,19 +1079,99 @@ void customRTB_DragDrop(object sender, DragEventArgs e)
{
if (!OpenFile.FileName.Contains(".cnp"))
{
customRTB.Clear();
string opnfile = File.ReadAllText(OpenFile.FileName);
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
customRTB.Text = opnfile;
this.Text = appName + NameWithotPath;
string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
customRTB.Select(Convert.ToInt32(cc2), 0);
saveConfirm();
return;
}
customRTB.Clear();
DecryptAES();
saveConfirm();
}
}
}
void saveConfirm()
{
if (customRTB.Modified == true)
{
string noname = "Unnamed.cnp";
string NameWithotPath = "Unnamed.cnp";
if (!this.Text.Contains(".cnp"))
{
NameWithotPath = "Unnamed.cnp";
}
if (this.Text.Contains(".cnp"))
{
NameWithotPath = currentFilename;
}
if (customRTB.Text != "")
{
DialogResult res = new DialogResult();
string messageBoxText = "";
if (publicVar.keyChanged == false)
{
messageBoxText = "Save file: " + "\"" + NameWithotPath + "\"" + " ? ";
}
if (publicVar.keyChanged == true)
{
messageBoxText = "Save file: " + "\"" + NameWithotPath + "\"" + " with a new key? ";
}
using (new CenterWinDialog(this))
{
res = MessageBox.Show(messageBoxText, "Crypto Notepad",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question);
if (res == DialogResult.Yes)
{
if (filename == noname)
{
SaveFile.FileName = noname;
saveAsToolStripMenuItem_Click(this, new EventArgs());
return;
}
if (filename != noname)
{
saveToolStripMenuItem1_Click_1(this, new EventArgs());
}
}
if (res == DialogResult.No)
{
DecryptAES();
return;
}
if (res == DialogResult.Cancel)
{
return;
}
}
}
if (customRTB.Text == "")
{
DecryptAES();
return;
}
}
if (customRTB.Modified == false)
{
DecryptAES();
}
}
private void customRTB_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.ShiftKey)

View file

@ -133,38 +133,6 @@
<value>438, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAABidJREFUaEPt
mE1oVFcUx6WIiBQJIRQRCaVI6CILKV0UKdJF6EKkC+miiJSCjUKIRUyC4EIwYpoQQ0g0UfNhNIlfWSTi
VzQm0ZjESRzHJESQLkqXLqSEIkOREl7/v8s9w3SYaT5mJm7mwOHNvHfPOf//Oeeed2fW5SQnOclJTnKy
EqmsrCxsbW3de/bs2X26Fp0/f369f7RqkY8t586d2yOf+1taWnZcuHBhg3+UWZHzvRcvXvyjt7c3uHr1
atDR0bGgwEcE4CO/ZMWiJHwt+0hPT09w7dq1oK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GBHuk3mB
j545c2afN3Vy7NixItmHGa+0TPyeMF82DKiECP/iTTMj+g3bRXCbNgbernaEEPj3yvh+bA4cOLBeugHl
e1VV1edqpzn8kG0mFLam3CcB6KVLl97W1tYWYJe2HD58eJtaJwJAKpA452kZ3gPq+aiC/oSNQG+Sfhyv
3BeJYk0bR4LfAFSAz/gxvyRJ74jFmpqaPd4XiVj+hGKxVwzXi8B2ZS4MyEQC9C49zd8gp0+fListLQVs
njQ/hW4Sia/UInO3b992bcdewKf55Z7aaPHUqVPfs16KT0fC1ENNLn4RBhjnHTp0KK++vr6TH/U4p38J
SqkhJPDvq6urjwj8Fq3fKuVakEQ/kfK8oKKi4htt1tdGAp9UA598Vsu+KS8vL/Y2EP8PCQ81tfjFGBE4
XwF3qfSvBwYGYqdMsqVejZ48ebJSa7ZJC6UAJChV2JygAIEca7ccPXq0RCTm+/v7Yz+GIME+ks9yvxaN
EfDwlhYthulGKYEB5LKm6dLDXx7aE/ONjY2Dx48f/1GZB5ADxTopNlQP+3i19sIf67eKxE5t+i75nNER
+/empqaxEydO/Hzw4MFEfyv/i0VGRoLAZGGz2ilfe6JYuqOsrIwgOCcIwFjHelfmFGqtaRXJE9h82kU+
v5TPT3XPKm8+mWSrP2Zg7J1YVt1o9J/tnutPb7Kk+PXmE03mk++rB54oOPNKcNO0Anh/iT7T9puTnOQk
JzlZhqxb9y/IfsJRyFDF/QAAAABJRU5ErkJggg==
</value>
</data>
<data name="pictureBox12.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAABidJREFUaEPt
@ -356,6 +324,38 @@
1BxJMmNMMVfuSzSXh+fEqwiPVyBJXyK1xD+njgB1cLQU8Yn/SRBFXtIA0snnVcW1I82asQljGXzCFQRH
byA1XwPJcBpv+wepo6gsm3fmZ4DOw3A2gOsQ+Qj5VHtlsW7kifabZKa/03gmyO/l8eGDgGztw8iF/EY+
AVD9A2v4zMuwTEzKAAAAAElFTkSuQmCC
</value>
</data>
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAABidJREFUaEPt
mE1oVFcUx6WIiBQJIRQRCaVI6CILKV0UKdJF6EKkC+miiJSCjUKIRUyC4EIwYpoQQ0g0UfNhNIlfWSTi
VzQm0ZjESRzHJESQLkqXLqSEIkOREl7/v8s9w3SYaT5mJm7mwOHNvHfPOf//Oeeed2fW5SQnOclJTnKy
EqmsrCxsbW3de/bs2X26Fp0/f369f7RqkY8t586d2yOf+1taWnZcuHBhg3+UWZHzvRcvXvyjt7c3uHr1
atDR0bGgwEcE4CO/ZMWiJHwt+0hPT09w7dq1oKurK6p7v+reRr8kM6Ks7Mb5kydPgnA47HRqasoREYl6
v2xFIqAlbW1tC8PDw8GLFy9iPvv6+gI9W5XPpEKbyOHAyMiICzA4OOh0cnLSBV4NCfn7tr29/S0JwcfQ
0FBw7969gO/EULL+VsW3+eXpiYIVdnZ2/objhw8fBnfv3nXB0PHxcQeA8kNiOe0EeDI/NjbmbB88eBDc
v38/5pNK3LhxY1H+dnuT9EQBC9T7ITI+OjrqglgVUEhEIpEYCW+WVOSrRJlfePr0aSzz5gcSkIGA9tk/
qsAX3ix9kbO6W7duOaCPHj2KBTOF3MuXL/+XhHy4toEwa/GDLVU1EoAnSUpYRNXM3DSSs63KXoggRoLP
BDd99uxZMDMzk7SdaBsyD3jWsJ/IPmpJeP78uaum2vUvrd/lTTMnclokDQOcDAKCwICAEAqJ2dnZ4Pr1
67FKyKaEkQs4nmFn67GFPJnnuda90/rvXMBsiJx/Jo1AgkxSbgAAhnHIdXp62kgsNjc3TyrzbyYmJoK5
uTm3HgLxJNgLPBf4qNose+BNRGC7dIbsGwkyacBQI8FMZ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EydO/Hzw4MFEfyv/i0VGRoLAZGGz2ilfe6JYuqOsrIwgOCcIwFjHelfmFGqtaRXJE9h82kU+
v5TPT3XPKm8+mWSrP2Zg7J1YVt1o9J/tnutPb7Kk+PXmE03mk++rB54oOPNKcNO0Anh/iT7T9puTnOQk
JzlZhqxb9y/IfsJRyFDF/QAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

View file

@ -122,6 +122,7 @@ private void InitializeComponent()
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Crypto Notepad";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form2_FormClosed);
this.Load += new System.EventHandler(this.Form2_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();

View file

@ -58,5 +58,9 @@ private void Form2_FormClosed(object sender, FormClosedEventArgs e)
textBox1.Text = "";
}
private void Form2_Load(object sender, EventArgs e)
{
this.Text = publicVar.openFileName;
}
}
}

View file

@ -23,6 +23,7 @@ static class publicVar
public static bool keyChanged = false;
public static bool settingsChanged = false;
public static bool okPressed = false;
public static string openFileName = "Crypto Notepad";
}
}