mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Deleted try-catch
This commit is contained in:
parent
4381714966
commit
d1edff1bbd
1 changed files with 5 additions and 14 deletions
|
|
@ -288,23 +288,14 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
Application.Exit();
|
Application.Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
if (res == DialogResult.No)
|
||||||
{
|
{
|
||||||
if (res == DialogResult.No)
|
Environment.Exit(0);
|
||||||
{
|
|
||||||
Environment.Exit(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (res == DialogResult.Cancel)
|
|
||||||
{
|
|
||||||
|
|
||||||
e.Cancel = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch
|
|
||||||
{
|
|
||||||
|
|
||||||
|
if (res == DialogResult.Cancel)
|
||||||
|
{
|
||||||
|
e.Cancel = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue