private bool IfTextFileOpenTheFile() { if (CurrentPath.EndsWith(@".txt\")) { System.Diagnostics.Process.Start(CurrentPath); return(true); } return(false); }