mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Deleted unnecessary var
This commit is contained in:
parent
580fc43234
commit
fa7fbc2a2b
1 changed files with 1 additions and 10 deletions
|
|
@ -24,7 +24,6 @@ public partial class MainWindow : Form
|
||||||
public static string key = "";
|
public static string key = "";
|
||||||
public static bool keyChanged = false;
|
public static bool keyChanged = false;
|
||||||
public static bool settingsChanged = false;
|
public static bool settingsChanged = false;
|
||||||
public static bool textSave = false;
|
|
||||||
public static string[] args = Environment.GetCommandLineArgs();
|
public static string[] args = Environment.GetCommandLineArgs();
|
||||||
Properties.Settings ps = Properties.Settings.Default;
|
Properties.Settings ps = Properties.Settings.Default;
|
||||||
int caretPos = 0;
|
int caretPos = 0;
|
||||||
|
|
@ -94,7 +93,6 @@ void DecryptAES()
|
||||||
toolStripStatusLabel1.ToolTipText = (OpenFile.FileName);
|
toolStripStatusLabel1.ToolTipText = (OpenFile.FileName);
|
||||||
filename = OpenFile.FileName;
|
filename = OpenFile.FileName;
|
||||||
|
|
||||||
textSave = false;
|
|
||||||
string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
||||||
customRTB.Select(Convert.ToInt32(cc2), 0);
|
customRTB.Select(Convert.ToInt32(cc2), 0);
|
||||||
}
|
}
|
||||||
|
|
@ -156,7 +154,6 @@ private void openAsotiations()
|
||||||
toolStripStatusLabel1.ToolTipText = (args[1]);
|
toolStripStatusLabel1.ToolTipText = (args[1]);
|
||||||
|
|
||||||
filename = args[1];
|
filename = args[1];
|
||||||
textSave = false;
|
|
||||||
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
||||||
customRTB.Select(Convert.ToInt32(cc), 0);
|
customRTB.Select(Convert.ToInt32(cc), 0);
|
||||||
}
|
}
|
||||||
|
|
@ -238,7 +235,6 @@ private async void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
toolStripStatusLabel1.Text = "Saved in: " + filename;
|
toolStripStatusLabel1.Text = "Saved in: " + filename;
|
||||||
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
||||||
customRTB.Select(Convert.ToInt32(cc), 0);
|
customRTB.Select(Convert.ToInt32(cc), 0);
|
||||||
textSave = false;
|
|
||||||
await Task.Delay(4000);
|
await Task.Delay(4000);
|
||||||
toolStripStatusLabel1.Text = "Ready";
|
toolStripStatusLabel1.Text = "Ready";
|
||||||
|
|
||||||
|
|
@ -256,7 +252,6 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
|
||||||
ps.Save();
|
ps.Save();
|
||||||
|
|
||||||
if (textSave == true)
|
|
||||||
{
|
{
|
||||||
string f = "Unnamed.cnp";
|
string f = "Unnamed.cnp";
|
||||||
if (customRTB.Text != "")
|
if (customRTB.Text != "")
|
||||||
|
|
@ -433,7 +428,6 @@ private async void saveToolStripMenuItem1_Click_1(object sender, EventArgs e)
|
||||||
customRTB.Text = noenc;
|
customRTB.Text = noenc;
|
||||||
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
||||||
customRTB.Select(Convert.ToInt32(cc), 0);
|
customRTB.Select(Convert.ToInt32(cc), 0);
|
||||||
textSave = false;
|
|
||||||
toolStripStatusLabel1.Text = "Saved in: " + filename;
|
toolStripStatusLabel1.Text = "Saved in: " + filename;
|
||||||
await Task.Delay(4000);
|
await Task.Delay(4000);
|
||||||
toolStripStatusLabel1.Text = "Ready";
|
toolStripStatusLabel1.Text = "Ready";
|
||||||
|
|
@ -673,7 +667,6 @@ private void customRTB_SelectionChanged_1(object sender, EventArgs e)
|
||||||
|
|
||||||
private void customRTB_TextChanged(object sender, EventArgs e)
|
private void customRTB_TextChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
textSave = true;
|
|
||||||
LineAndColumn();
|
LineAndColumn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -979,10 +972,8 @@ void AutoLock(bool minimize)
|
||||||
toolStripStatusLabel1.ToolTipText = (OpenFile.FileName);
|
toolStripStatusLabel1.ToolTipText = (OpenFile.FileName);
|
||||||
filename = OpenFile.FileName;
|
filename = OpenFile.FileName;
|
||||||
|
|
||||||
textSave = false;
|
|
||||||
string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
||||||
customRTB.SelectionStart = caretPos;
|
customRTB.SelectionStart = caretPos;
|
||||||
textSave = true;
|
|
||||||
this.Show();
|
this.Show();
|
||||||
}
|
}
|
||||||
catch (CryptographicException)
|
catch (CryptographicException)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue