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:
@@ -816,7 +816,7 @@ namespace Volian.Controls.Library
|
||||
_ProgressBar.Text = "";
|
||||
_ProgressBar.Maximum = 0;
|
||||
_ProgressBar.Value = 0;
|
||||
_ProgressBar.TextVisible = false;
|
||||
//_ProgressBar.TextVisible = false; // B2017-125 text in progress was not alway being displayed
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -925,7 +925,7 @@ namespace Volian.Controls.Library
|
||||
_ProgressBar.Text = "";
|
||||
_ProgressBar.Maximum = 0;
|
||||
_ProgressBar.Value = 0;
|
||||
_ProgressBar.TextVisible = false;
|
||||
//_ProgressBar.TextVisible = false; // B2017-125 text was not always being displayed
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
@@ -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
|
||||
|
@@ -1787,7 +1787,7 @@ namespace Volian.Controls.Library
|
||||
// to modify code to get which one (when there is more than one)
|
||||
if (MyDVI.DocVersionAssociations.Count < 1)
|
||||
{
|
||||
MessageBox.Show("Error Updating ro.fst. No associated ro.fst");
|
||||
MessageBox.Show("Error Updating ro.fst. No associated ro.fst", "No ROs associated"); //B2017-125 added title to messagebox
|
||||
FinalProgressBarMessage = "No ROs associated";
|
||||
return;
|
||||
}
|
||||
@@ -1795,20 +1795,20 @@ namespace Volian.Controls.Library
|
||||
string rofstPath = roFstInfo.MyRODb.FolderPath + @"\ro.fst";
|
||||
if (!File.Exists(rofstPath))
|
||||
{
|
||||
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
|
||||
FinalProgressBarMessage = "No existing RO.FST";
|
||||
return;
|
||||
}
|
||||
FileInfo fiRofst = new FileInfo(rofstPath);
|
||||
if (roFstInfo.DTS == fiRofst.LastWriteTimeUtc)
|
||||
{
|
||||
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
|
||||
FinalProgressBarMessage = "RO.FST up to date";
|
||||
return;
|
||||
}
|
||||
if (roFstInfo.DTS > fiRofst.LastWriteTimeUtc)
|
||||
{
|
||||
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", "Older RO.FST"); //B2017-125 added title to messagebox
|
||||
FinalProgressBarMessage = "Older RO.FST";
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user