diff --git a/Crypto Notepad/MainForm.cs b/Crypto Notepad/MainForm.cs index 74a719d..930cb31 100644 --- a/Crypto Notepad/MainForm.cs +++ b/Crypto Notepad/MainForm.cs @@ -162,7 +162,15 @@ private async void OpenAsotiations() DialogResult res = MessageBox.Show(this, "Try to decrypt \"" + PublicVar.openFileName + "\" file?", PublicVar.appName, MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (res == DialogResult.No) + { + string opnfile = File.ReadAllText(args[1]); + string NameWithotPath = Path.GetFileName(args[1]); + richTextBox.Text = opnfile; + filePath = args[1]; Text = NameWithotPath + " – " + PublicVar.appName; + StatusPanelFileInfo(); + return; + } } await DecryptAES(); }