Added code to handle importing a procedure with different RO folder

Added code to sort Administrative Tools
Added code to improve how the controls align when using a lower DPI screen resolution
Added code to refresh progress bar when updating RO's
This commit is contained in:
Rich
2015-02-27 03:54:35 +00:00
parent f73ab7c3a7
commit de51192fc0
4 changed files with 56 additions and 14 deletions

View File

@@ -216,11 +216,31 @@ namespace VEPROMS
}
if (MyRODb == null)
{
if (localROPaths.Count == 0)
MessageBox.Show("need new ro folder assigned");
else
MessageBox.Show("pick an ro folder");
return;
if (localROPaths.Count == 0)
{
MessageBox.Show("There has been no RO folder defined for this database.\r\n\r\nIn order to import a procedure, you need to assign a RO folder path.\r\n\r\nImport process will terminate.");
this.Cursor = Cursors.Default;
return;
}
else
{
this.Cursor = Cursors.Default;
dlgPickROFolder dlg = new dlgPickROFolder();
dlg.ImportedROFolder = rofolderpath;
dlg.LocalROFolders = localROPaths;
dlg.ShowDialog(this);
if (dlg.SelectedROFolder != string.Empty)
{
MyRODb = RODb.GetByFolderPath(dlg.SelectedROFolder);
oldRODbID = newRODbID = MyRODb.RODbID;
MyDocVersion.RefreshDocVersionAssociations();
}
else
{
MessageBox.Show("Since you did not pick an existing RO folder defined for this database, the import process will terminate.");
return;
}
}
}
foreach (ProcedureInfo pi in MyDocVersion.Procedures)
{