This commit is contained in:
parent
be255b4758
commit
ba65adc188
@ -765,6 +765,11 @@ namespace Volian.Controls.Library
|
|||||||
string roapp = Environment.GetEnvironmentVariable("roapp");
|
string roapp = Environment.GetEnvironmentVariable("roapp");
|
||||||
LinkText lt = new LinkText(_MyStepRTB.MyLinkText);
|
LinkText lt = new LinkText(_MyStepRTB.MyLinkText);
|
||||||
string args = "\"" + lt.MyRoUsageInfo.MyRODb.FolderPath + "\" " + lt.MyRoUsageInfo.ROID.ToLower();
|
string args = "\"" + lt.MyRoUsageInfo.MyRODb.FolderPath + "\" " + lt.MyRoUsageInfo.ROID.ToLower();
|
||||||
|
if (!Directory.Exists(lt.MyRoUsageInfo.MyRODb.FolderPath))
|
||||||
|
{
|
||||||
|
MessageBox.Show(string.Format("RO Database directory does not exist: {0}", lt.MyRoUsageInfo.MyRODb.FolderPath));
|
||||||
|
return;
|
||||||
|
}
|
||||||
System.Diagnostics.Process.Start(roapp, args);
|
System.Diagnostics.Process.Start(roapp, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -837,6 +842,11 @@ namespace Volian.Controls.Library
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
string roloc = "\"" + MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath + "\"";
|
string roloc = "\"" + MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath + "\"";
|
||||||
|
if (!Directory.Exists(MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath))
|
||||||
|
{
|
||||||
|
MessageBox.Show(string.Format("RO Database directory does not exist: {0}", MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath));
|
||||||
|
return;
|
||||||
|
}
|
||||||
System.Diagnostics.Process.Start(roapp, roloc);
|
System.Diagnostics.Process.Start(roapp, roloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user