Fixed bug with file saving

This commit is contained in:
Sigmanor 2017-02-10 23:22:50 +02:00
parent 709ebd4ca9
commit d03522cc5c

View file

@ -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);