Remove unnecessary code

This commit is contained in:
Sigmanor 2016-01-24 22:58:27 +02:00
parent b25dee9fba
commit 045778aa4d

View file

@ -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;
}
}
}