mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Changed message text on windows closing
This commit is contained in:
parent
045778aa4d
commit
4381714966
1 changed files with 11 additions and 1 deletions
|
|
@ -254,12 +254,22 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
|
|||
|
||||
{
|
||||
string f = "Unnamed.cnp";
|
||||
string NameWithotPath;
|
||||
try
|
||||
{
|
||||
NameWithotPath = Path.GetFileName(args[1]);
|
||||
}
|
||||
catch (IndexOutOfRangeException)
|
||||
{
|
||||
NameWithotPath = Path.GetFileName(OpenFile.FileName);
|
||||
}
|
||||
|
||||
if (customRTB.Text != "")
|
||||
{
|
||||
DialogResult res = new DialogResult();
|
||||
using (new CenterWinDialog(this))
|
||||
{
|
||||
res = MessageBox.Show("Save changes in:\n" + filename + " ?",
|
||||
res = MessageBox.Show("Save file: " + "\"" + NameWithotPath + "\"" + " ? ",
|
||||
"Crypto Notepad",
|
||||
MessageBoxButtons.YesNoCancel,
|
||||
MessageBoxIcon.Question);
|
||||
|
|
|
|||
Loading…
Reference in a new issue