Added titles to message boxes used during the check of the RO.fst B2017-125

Add LoadingFigures to save status of loading the figures during Update RO Values B2017-125
Added checks to see if the RO Figures need loaded B2017-125
Added checks to see if the RO Figures need loaded and set the status during the loading figures part of updating RO values B2017-125
Make the progress bar text visible B2017-125
Added titles to message boxes used during the check of the RO.fst and make the progress bar text visible B2017-125
This commit is contained in:
2017-06-23 20:02:34 +00:00
parent 4686415f98
commit a8a0b37a32
8 changed files with 114 additions and 44 deletions

View File

@@ -2914,7 +2914,7 @@ namespace Volian.Controls.Library
if (Mydvi.DocVersionAssociations.Count < 1)
{
FinalProgressBarMessage = "No ROs associated";
MessageBox.Show("Error Updating ro.fst. No associated ro.fst");
MessageBox.Show("Error Updating ro.fst", "No associated ro.fst"); //B2017-125 added title to messagebox
return;
}
ROFstInfo roFstInfo = Mydvi.DocVersionAssociations[0].MyROFst;
@@ -2923,20 +2923,20 @@ namespace Volian.Controls.Library
if (!File.Exists(rofstPath))
{
FinalProgressBarMessage = "No existing RO.FST";
MessageBox.Show("No existing ro.fst in path " + roFstInfo.MyRODb.FolderPath + ". Check for invalid path");
MessageBox.Show("No existing ro.fst in path " + roFstInfo.MyRODb.FolderPath + ". Check for invalid path", "No existing RO.FST"); //B2017-125 added title to messagebox
return;
}
FileInfo fiRofst = new FileInfo(rofstPath);
if (roFstInfo.DTS == fiRofst.LastWriteTimeUtc)
{
FinalProgressBarMessage = "RO.FST up to date";
MessageBox.Show("ro.fst files are same for path " + roFstInfo.MyRODb.FolderPath + ", import of that ro.fst will not be done");
MessageBox.Show("ro.fst files are same for path " + roFstInfo.MyRODb.FolderPath + ", import of that ro.fst will not be done", "RO.FST up to date"); //B2017-125 added title to messagebox
return;
}
if (roFstInfo.DTS > fiRofst.LastWriteTimeUtc)
{
FinalProgressBarMessage = "RO.FST is older";
MessageBox.Show("Cannot copy older ro.fst from " + roFstInfo.MyRODb.FolderPath + ", import of that ro.fst will not be done");
MessageBox.Show("Cannot copy older ro.fst from " + roFstInfo.MyRODb.FolderPath + ", import of that ro.fst will not be done", "RO.FST is older"); //B2017-125 added title to messagebox
return;
}
Cursor = Cursors.WaitCursor;
@@ -2976,6 +2976,7 @@ namespace Volian.Controls.Library
ProgressBar.Maximum = max;
ProgressBar.Value = value;
ProgressBar.Text = text;
ProgressBar.TextVisible = true; //B2017-125 text was not always visible
Application.DoEvents();
}
private string InitialProgressBarMessage