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 != "")
|
if (customRTB.Text != "")
|
||||||
{
|
{
|
||||||
DialogResult res = new DialogResult();
|
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))
|
using (new CenterWinDialog(this))
|
||||||
{
|
{
|
||||||
res = MessageBox.Show("Save file: " + "\"" + NameWithotPath + "\"" + " ? ",
|
res = MessageBox.Show(messageBoxText, "Crypto Notepad",
|
||||||
"Crypto Notepad",
|
MessageBoxButtons.YesNoCancel,
|
||||||
MessageBoxButtons.YesNoCancel,
|
MessageBoxIcon.Question);
|
||||||
MessageBoxIcon.Question);
|
|
||||||
if (res == DialogResult.Yes)
|
if (res == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
if (filename == noname)
|
if (filename == noname)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue