Bug fix B2013-015. Fixed a refresh problem that sometimes happens when you delete a step.

Bug fix B2013-016, added a check for the existence of the path assigned to the roapp environment variable
This commit is contained in:
2013-01-28 16:37:22 +00:00
parent 49cc4aa1ca
commit ee57834d9d
2 changed files with 28 additions and 2 deletions

View File

@@ -1634,11 +1634,23 @@ namespace Volian.Controls.Library
return;
}
string roapp = Environment.GetEnvironmentVariable("roapp");
if (roapp == null)
if (roapp == null || roapp == string.Empty)
{
MessageBox.Show("Could not find path to Ro Editor, check 'roapp' environment variable");
MessageBox.Show("The 'roapp' environment variable needs to be set to the path of the RO Editor\n\n Ex: C:\\VE-PROMS.NET\\Bin\\roeditor.exe", "Environment Variable Error");
return;
}
if (!File.Exists(roapp))
{
string errtxt = string.Format("Could not find path to Referenced Objects Editor:\n\n roapp = {0}\n\n Verify the path assigned to the 'roapp' environment variable", roapp);
MessageBox.Show(errtxt, "Environment Variable Error");
//MessageBox.Show("Could not find path to Ro Editor, check 'roapp' environment variable","Environment Variable Error");
return;
}
//if (roapp == null)
//{
// MessageBox.Show("Could not find path to Ro Editor, check 'roapp' environment variable");
// return;
//}
if (MyDVI == null || MyDVI.DocVersionAssociationCount < 1)
{
MessageBox.Show("Could not find associated path for ro data.");