diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index 9a13591..723f0d7 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -1037,11 +1037,10 @@ private void customRTB_DragDrop(object sender, DragEventArgs e) var list = fname as string[]; if (list != null && !string.IsNullOrWhiteSpace(list[0])) { - string opnfile = File.ReadAllText(OpenFile.FileName); - string NameWithotPath = Path.GetFileName(OpenFile.FileName); - if (!OpenFile.FileName.Contains(".cnp")) { + string opnfile = File.ReadAllText(OpenFile.FileName); + string NameWithotPath = Path.GetFileName(OpenFile.FileName); customRTB.Text = opnfile; this.Text = appName + NameWithotPath; string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);