mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Renamed variable
This commit is contained in:
parent
5675643bfd
commit
5ce38ccfb5
1 changed files with 7 additions and 7 deletions
|
|
@ -246,7 +246,7 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
|
|||
|
||||
if (customRTB.Modified == true)
|
||||
{
|
||||
string f = "Unnamed.cnp";
|
||||
string noname = "Unnamed.cnp";
|
||||
string NameWithotPath;
|
||||
try
|
||||
{
|
||||
|
|
@ -268,13 +268,13 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
|
|||
MessageBoxIcon.Question);
|
||||
if (res == DialogResult.Yes)
|
||||
{
|
||||
if (filename == f)
|
||||
if (filename == noname)
|
||||
{
|
||||
SaveFile.FileName = f;
|
||||
SaveFile.FileName = noname;
|
||||
saveAsToolStripMenuItem_Click(this, new EventArgs());
|
||||
}
|
||||
|
||||
if (filename != f)
|
||||
if (filename != noname)
|
||||
{
|
||||
saveToolStripMenuItem1_Click_1(this, new EventArgs());
|
||||
}
|
||||
|
|
@ -376,12 +376,12 @@ private void clearToolStripMenuItem_Click(object sender, EventArgs e)
|
|||
|
||||
private void saveToolStripMenuItem1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
string f = "Unnamed.cnp";
|
||||
string noname = "Unnamed.cnp";
|
||||
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
|
||||
|
||||
if (filename == f)
|
||||
if (filename == noname)
|
||||
{
|
||||
SaveFile.FileName = f;
|
||||
SaveFile.FileName = noname;
|
||||
saveAsToolStripMenuItem_Click(this, new EventArgs());
|
||||
|
||||
if (Form2.OkPressed == false)
|
||||
|
|
|
|||
Loading…
Reference in a new issue