mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Remove unnecessary code
This commit is contained in:
parent
b25dee9fba
commit
045778aa4d
1 changed files with 1 additions and 6 deletions
|
|
@ -673,10 +673,6 @@ private void customRTB_TextChanged(object sender, EventArgs e)
|
|||
private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
SettingsForm sf = new SettingsForm();
|
||||
|
||||
sf.StartPosition = FormStartPosition.Manual;
|
||||
sf.Location = new Point(this.Location.X + (this.Width - sf.Width) / 2, this.Location.Y + (this.Height - sf.Height) / 2);
|
||||
sf.ShowDialog(this);
|
||||
}
|
||||
|
||||
private async void MainWindow_Activated(object sender, EventArgs e)
|
||||
|
|
@ -938,7 +934,6 @@ private void pictureBox1_MouseLeave(object sender, EventArgs e)
|
|||
|
||||
void AutoLock(bool minimize)
|
||||
{
|
||||
string saveText = customRTB.Text;
|
||||
Form2 f2 = new Form2();
|
||||
key = "";
|
||||
caretPos = customRTB.SelectionStart;
|
||||
|
|
@ -966,7 +961,6 @@ void AutoLock(bool minimize)
|
|||
string opnfile = File.ReadAllText(OpenFile.FileName);
|
||||
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
|
||||
string de = AES.Decrypt(opnfile, key, ps.TheSalt, ps.HashAlgorithm, ps.PasswordIterations, "16CHARSLONG12345", ps.KeySize);
|
||||
customRTB.Text = saveText;
|
||||
|
||||
toolStripStatusLabel1.Text = NameWithotPath;
|
||||
toolStripStatusLabel1.ToolTipText = (OpenFile.FileName);
|
||||
|
|
@ -1044,5 +1038,6 @@ private void customRTB_KeyDown(object sender, KeyEventArgs e)
|
|||
{
|
||||
caretPos = customRTB.SelectionStart;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue