diff --git a/Crypto Notepad/MainForm.cs b/Crypto Notepad/MainForm.cs index a2dc46c..bb327bc 100644 --- a/Crypto Notepad/MainForm.cs +++ b/Crypto Notepad/MainForm.cs @@ -122,8 +122,15 @@ private void OpenAsotiations() { OpenAsotiations(); } + if (dialogResult == DialogResult.Cancel) + { + if (!Visible) + { + Application.Exit(); } } + } + } else { string opnfile = File.ReadAllText(args[1]); @@ -164,8 +171,15 @@ private void SendTo() { SendTo(); } + if (dialogResult == DialogResult.Cancel) + { + if (!Visible) + { + Application.Exit(); } } + } + } else { string opnfile = File.ReadAllText(argsPath);