mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Able to open files of all formats
This commit is contained in:
parent
fa7fbc2a2b
commit
3c09622150
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue