From a208e5202c5a798056b2a3f5dbb1f4cb9b0c45cb Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 7 Nov 2019 20:07:52 +0200 Subject: [PATCH] Added line breaks for better readability --- Crypto Notepad/MainForm.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); }