fixed issue of being prompted for the folder containing the FMTALL and GENMACALL folders, when performing the Update Formats option

This commit is contained in:
John Jenko 2012-10-05 14:58:08 +00:00
parent 417e6ebb40
commit d7d1b7194d

View File

@ -1935,7 +1935,7 @@ namespace VEPROMS
string tmp = Properties.Settings.Default.FormatPath; string tmp = Properties.Settings.Default.FormatPath;
DirectoryInfo di = null; DirectoryInfo di = null;
if (tmp != null && tmp !="") di = new DirectoryInfo(Properties.Settings.Default.FormatPath); if (tmp != null && tmp !="") di = new DirectoryInfo(Properties.Settings.Default.FormatPath);
if (((tmp ?? "") == "") || (di != null && (!di.Exists || !File.Exists(di.FullName + @"\fmtall") || !File.Exists(di.FullName + @"\genmacall")))) if (((tmp ?? "") == "") || (di != null && (!di.Exists || !Directory.Exists(di.FullName + @"\fmtall") || !Directory.Exists(di.FullName + @"\genmacall"))))
{ {
while (((tmp ?? "") == "") || (!di.Exists || !Directory.Exists(di.FullName + @"\fmtall") || !Directory.Exists(di.FullName + @"\genmacall"))) while (((tmp ?? "") == "") || (!di.Exists || !Directory.Exists(di.FullName + @"\fmtall") || !Directory.Exists(di.FullName + @"\genmacall")))
{ {