Now when click "Cancel" in the "Enter Key" window, app will close.

This commit is contained in:
Alexander 2019-10-15 20:18:04 +03:00
parent 6606caf589
commit c14f525569

View file

@ -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);