From 3c0962215076d49e104988b213cfdca54bd6ac32 Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Sun, 24 Jan 2016 22:48:34 +0200 Subject: [PATCH] Able to open files of all formats --- Crypto Notepad/Form1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index 613278b..91103af 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -113,7 +113,7 @@ private void openToolStripMenuItem_Click(object sender, EventArgs e) { if (OpenFile.ShowDialog() != DialogResult.OK) return; { - if (OpenFile.FileName.Contains(".txt")) + if (!OpenFile.FileName.Contains(".cnp")) { string opnfile = File.ReadAllText(OpenFile.FileName); string NameWithotPath = Path.GetFileName(OpenFile.FileName);