diff --git a/Crypto Notepad/MainForm.cs b/Crypto Notepad/MainForm.cs index 6019bc2..45c18fd 100644 --- a/Crypto Notepad/MainForm.cs +++ b/Crypto Notepad/MainForm.cs @@ -933,21 +933,11 @@ private void findToolStripMenuItem2_Click(object sender, EventArgs e) private void documentationToolStripMenuItem_Click(object sender, EventArgs e) { - //Process.Start("https://github.com/Sigmanor/Crypto-Notepad/wiki/Documentation"); + Process.Start("https://github.com/Sigmanor/Crypto-Notepad/wiki/Documentation"); //MessageBox.Show("currentFilename: " + currentFilename); //MessageBox.Show("encryptionKey: " + PublicVar.encryptionKey.Get()); //MessageBox.Show("TypedPassword: " + TypedPassword.Value); //MessageBox.Show("filePath: " + filePath); - - int i = 1; - while (i != 100) - { - i++; - Text = i.ToString(); - saveToolStripMenuItem1_Click_1(sender, e); - CheckFileSavedCorrectly(sender, e); - } - } private void ToolsToolStripMenuItem_DropDownOpened(object sender, EventArgs e) @@ -1379,24 +1369,5 @@ private void customRTB_KeyUp(object sender, KeyEventArgs e) shiftPresed = false; } } - - private void CheckFileSavedCorrectly(object sender, EventArgs e) - { - string de = ""; - try - { - string opnfile = File.ReadAllText(OpenFile.FileName); - de = AES.Decrypt(opnfile, PublicVar.encryptionKey.Get(), null, ps.HashAlgorithm, ps.PasswordIterations, ps.KeySize); - customRTB.Text = de; - string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture); - customRTB.Select(Convert.ToInt32(cc2), 0); - } - catch (CryptographicException) - { - MessageBox.Show("Gotcha!"); - saveToolStripMenuItem1_Click_1(sender, e); - } - - } } } \ No newline at end of file