mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Added a message when key was changed
This commit is contained in:
parent
a44fb626d7
commit
7efb253534
1 changed files with 14 additions and 4 deletions
|
|
@ -270,12 +270,22 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
|
|||
if (customRTB.Text != "")
|
||||
{
|
||||
DialogResult res = new DialogResult();
|
||||
string messageBoxText = "";
|
||||
|
||||
if (keyChanged == false)
|
||||
{
|
||||
messageBoxText = "Save file: " + "\"" + NameWithotPath + "\"" + " ? ";
|
||||
}
|
||||
if (keyChanged == true)
|
||||
{
|
||||
messageBoxText = "Save file: " + "\"" + NameWithotPath + "\"" + " with a new key? ";
|
||||
}
|
||||
//Save file with a new key?
|
||||
using (new CenterWinDialog(this))
|
||||
{
|
||||
res = MessageBox.Show("Save file: " + "\"" + NameWithotPath + "\"" + " ? ",
|
||||
"Crypto Notepad",
|
||||
MessageBoxButtons.YesNoCancel,
|
||||
MessageBoxIcon.Question);
|
||||
res = MessageBox.Show(messageBoxText, "Crypto Notepad",
|
||||
MessageBoxButtons.YesNoCancel,
|
||||
MessageBoxIcon.Question);
|
||||
if (res == DialogResult.Yes)
|
||||
{
|
||||
if (filename == noname)
|
||||
|
|
|
|||
Loading…
Reference in a new issue