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:
parent
4686415f98
commit
a8a0b37a32
@ -1087,7 +1087,7 @@ namespace VEPROMS
|
|||||||
// a docversion can have more than one rofst (for now, just use first?) - should I bring up a dialog?
|
// a docversion can have more than one rofst (for now, just use first?) - should I bring up a dialog?
|
||||||
if (_DocVersionConfig.MyDocVersion.DocVersionAssociations.Count < 1)
|
if (_DocVersionConfig.MyDocVersion.DocVersionAssociations.Count < 1)
|
||||||
{
|
{
|
||||||
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;
|
return;
|
||||||
}
|
}
|
||||||
foreach (DocVersionAssociation dva in _DocVersionConfig.MyDocVersion.DocVersionAssociations)
|
foreach (DocVersionAssociation dva in _DocVersionConfig.MyDocVersion.DocVersionAssociations)
|
||||||
@ -1098,20 +1098,20 @@ namespace VEPROMS
|
|||||||
if (!File.Exists(rofstPath))
|
if (!File.Exists(rofstPath))
|
||||||
{
|
{
|
||||||
FinalProgressBarMessage = "No existing RO.FST";
|
FinalProgressBarMessage = "No existing RO.FST";
|
||||||
MessageBox.Show("No existing ro.fst in path " + rdi.FolderPath + ". Check for invalid path");
|
MessageBox.Show("No existing ro.fst in path " + rdi.FolderPath + ". Check for invalid path", "No existing RO.FST"); //B2017-125 added title to messagebox
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
FileInfo fiRofst = new FileInfo(rofstPath);
|
FileInfo fiRofst = new FileInfo(rofstPath);
|
||||||
if (SelectedROFst.DTS == fiRofst.LastWriteTimeUtc)
|
if (SelectedROFst.DTS == fiRofst.LastWriteTimeUtc)
|
||||||
{
|
{
|
||||||
FinalProgressBarMessage = "RO.FST up to date";
|
FinalProgressBarMessage = "RO.FST up to date";
|
||||||
MessageBox.Show("ro.fst files are same for path " + rdi.FolderPath + ", import of that ro.fst will not be done");
|
MessageBox.Show("ro.fst files are same for path " + rdi.FolderPath + ", import of that ro.fst will not be done", "RO.FST up to date"); //B2017-125 added title to messagebox
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (SelectedROFst.DTS > fiRofst.LastWriteTimeUtc)
|
if (SelectedROFst.DTS > fiRofst.LastWriteTimeUtc)
|
||||||
{
|
{
|
||||||
FinalProgressBarMessage = "RO.FST is older";
|
FinalProgressBarMessage = "RO.FST is older";
|
||||||
MessageBox.Show("Cannot copy older ro.fst from " + rdi.FolderPath + ", import of that ro.fst will not be done");
|
MessageBox.Show("Cannot copy older ro.fst from " + rdi.FolderPath + ", import of that ro.fst will not be done", "RO.FST is older"); //B2017-125 added title to messagebox
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Cursor = Cursors.WaitCursor;
|
Cursor = Cursors.WaitCursor;
|
||||||
|
@ -107,6 +107,23 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_Xp["ROUpdate", "LastCompleted"] = value; // save selected value
|
_Xp["ROUpdate", "LastCompleted"] = value; // save selected value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// B2017-125 save status of loading RO Figues
|
||||||
|
[Category("RO Update")]
|
||||||
|
[DisplayName("Loading Figures")]
|
||||||
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
|
[Description("Loading Figures Status")]
|
||||||
|
public string ROUpdate_LoadingFigures
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
string s = _Xp["ROUpdate", "LoadingFigures"];// get the saved value
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Xp["ROUpdate", "LoadingFigures"] = value; // save selected value
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion // ROUpdate
|
#endregion // ROUpdate
|
||||||
#region ToString
|
#region ToString
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
@ -87,6 +87,29 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (att == null) return string.Empty;
|
if (att == null) return string.Empty;
|
||||||
return att.InnerText;
|
return att.InnerText;
|
||||||
}
|
}
|
||||||
|
// B2017-125 put info in the config as to the status of loading RO Figures during the Update RO Values
|
||||||
|
// This will help us determine if the Update RO Values was terminated during the loading of the RO Figures
|
||||||
|
public bool ROfstLoadingFigures
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (DocVersionAssociations == null || DocVersionAssociationCount == 0) return true; // no ROs associated this will turn off the update ROs button
|
||||||
|
if (ROLoadingFigures(DocVersionAssociations[0]) == string.Empty) return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// B2017-125 return the loading figures status
|
||||||
|
private string ROLoadingFigures(DocVersionAssociation dva)
|
||||||
|
{
|
||||||
|
XmlDocument xd = new XmlDocument();
|
||||||
|
if (dva.Config == null || dva.Config.Length == 0) return string.Empty;
|
||||||
|
xd.LoadXml(dva.Config);
|
||||||
|
XmlNode xn = xd.DocumentElement.SelectSingleNode("//ROUpdate");
|
||||||
|
if (xn == null) return string.Empty;
|
||||||
|
XmlAttribute att = xn.Attributes["LoadingFigures"];
|
||||||
|
if (att == null) return string.Empty;
|
||||||
|
return att.InnerText;
|
||||||
|
}
|
||||||
#region VersionType
|
#region VersionType
|
||||||
public VersionTypeEnum eVersionType
|
public VersionTypeEnum eVersionType
|
||||||
{
|
{
|
||||||
@ -270,6 +293,12 @@ namespace VEPROMS.CSLA.Library
|
|||||||
AssociationConfig ac = new AssociationConfig(associationInfo);
|
AssociationConfig ac = new AssociationConfig(associationInfo);
|
||||||
return ac.ROUpdate_LastCompleted;
|
return ac.ROUpdate_LastCompleted;
|
||||||
}
|
}
|
||||||
|
// B2017-125 return the loading figures status
|
||||||
|
private string ROLoadingFigures(AssociationInfo associationInfo)
|
||||||
|
{
|
||||||
|
AssociationConfig ac = new AssociationConfig(associationInfo);
|
||||||
|
return ac.ROUpdate_LoadingFigures;
|
||||||
|
}
|
||||||
#region SearchPaths
|
#region SearchPaths
|
||||||
public string _SearchDVPath;
|
public string _SearchDVPath;
|
||||||
public string SearchDVPath
|
public string SearchDVPath
|
||||||
|
@ -306,7 +306,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
public static ROFst RefreshROFst(RODbInfo rdi, DocVersionAssociation dva, DocVersion docver, ROFstInfo origROFst, ROFstInfoProgressBarRefresh myProgressBarRefresh, System.Windows.Forms.TextBox tbStatus)
|
public static ROFst RefreshROFst(RODbInfo rdi, DocVersionAssociation dva, DocVersion docver, ROFstInfo origROFst, ROFstInfoProgressBarRefresh myProgressBarRefresh, System.Windows.Forms.TextBox tbStatus)
|
||||||
{
|
{
|
||||||
ROFst rofst = null;
|
ROFst rofst = null;
|
||||||
if (docver.NewerRoFst)
|
if (docver.ROfstLoadingFigures || docver.NewerRoFst) // B2017-125 see if loading figures was completed
|
||||||
{
|
{
|
||||||
// only load the RO.fst
|
// only load the RO.fst
|
||||||
Volian.Base.Library.VlnSettings.DoUpdateRO = false;
|
Volian.Base.Library.VlnSettings.DoUpdateRO = false;
|
||||||
@ -339,13 +339,21 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// this witll tell us if the RO Update was completed, interrupted, or just needs done and whether to make the Update ROs button available
|
// this witll tell us if the RO Update was completed, interrupted, or just needs done and whether to make the Update ROs button available
|
||||||
private static void SetAssociationLastCompleted(DocVersion docver, string value)
|
private static void SetAssociationLastCompleted(DocVersion docver, string value)
|
||||||
{
|
{
|
||||||
//Association asc = dva.MyAssociation;
|
|
||||||
string cfg = docver.DocVersionAssociations[0].Config;
|
string cfg = docver.DocVersionAssociations[0].Config;
|
||||||
AssociationConfig ac = new AssociationConfig((cfg== null || cfg.Length == 0) ? "<Config />" : cfg);
|
AssociationConfig ac = new AssociationConfig((cfg== null || cfg.Length == 0) ? "<Config />" : cfg);
|
||||||
ac.ROUpdate_LastCompleted = value;
|
ac.ROUpdate_LastCompleted = value;
|
||||||
docver.DocVersionAssociations[0].Config = ac.ToString();
|
docver.DocVersionAssociations[0].Config = ac.ToString();
|
||||||
docver.Save();
|
docver.Save();
|
||||||
}
|
}
|
||||||
|
// Place the status of loading the RO Figures when updating RO Values
|
||||||
|
private static void SetAssociationROFiguresLoading(DocVersion docver, string value)
|
||||||
|
{
|
||||||
|
string cfg = docver.DocVersionAssociations[0].Config;
|
||||||
|
AssociationConfig ac = new AssociationConfig((cfg== null || cfg.Length == 0) ? "<Config />" : cfg);
|
||||||
|
ac.ROUpdate_LoadingFigures = value;
|
||||||
|
docver.DocVersionAssociations[0].Config = ac.ToString();
|
||||||
|
docver.Save();
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Updates an ro.fst into a sql database.
|
/// Updates an ro.fst into a sql database.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -368,11 +376,18 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (rofst != null)
|
if (rofst != null)
|
||||||
{
|
{
|
||||||
// Get a list of figures which have changed content (DTS)
|
// Get a list of figures which have changed content (DTS)
|
||||||
List<string> changedFigures = GetChangedFigureROIDs(origROFst, ROFstInfo.GetJustROFst(rofst.ROFstID),DocVersionInfo.Get(docver.VersionID), myProgressBarRefresh);
|
List<string> MyChangedFigureROIDs = null;
|
||||||
|
if (docver.ROfstLoadingFigures) // B2017-125 see if loading figures was completed
|
||||||
|
{
|
||||||
|
ROFSTLookup myLookup = ROFstInfo.GetJustROFst(rofst.ROFstID).GetROFSTLookup(DocVersionInfo.Get(docver.VersionID));
|
||||||
|
MyChangedFigureROIDs = UpdateROFigures(rdi, myProgressBarRefresh, rofst, RODb.GetJustRoDb(rdi.RODbID), myLookup, docver);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
MyChangedFigureROIDs = GetChangedFigureROIDs(origROFst, ROFstInfo.GetJustROFst(rofst.ROFstID), DocVersionInfo.Get(docver.VersionID), myProgressBarRefresh);
|
||||||
docver.DocVersionAssociations[0].MyROFst = rofst;
|
docver.DocVersionAssociations[0].MyROFst = rofst;
|
||||||
docver.Save();
|
SetAssociationLastCompleted(docver, string.Empty);
|
||||||
if (!Volian.Base.Library.VlnSettings.GetCommandFlag("NOUPDATERO") && Volian.Base.Library.VlnSettings.DoUpdateRO)
|
if (!Volian.Base.Library.VlnSettings.GetCommandFlag("NOUPDATERO") && Volian.Base.Library.VlnSettings.DoUpdateRO)
|
||||||
UpdateROValuesText(origROFst, rofst, DocVersionInfo.Get(docver.VersionID),myProgressBarRefresh,changedFigures);
|
UpdateROValuesText(origROFst, rofst, DocVersionInfo.Get(docver.VersionID), myProgressBarRefresh, MyChangedFigureROIDs);
|
||||||
return rofst;
|
return rofst;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -387,9 +402,21 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// Hook this into the current docversion by replacing the rofstid field in the doc version
|
// Hook this into the current docversion by replacing the rofstid field in the doc version
|
||||||
// association object:
|
// association object:
|
||||||
dva.MyROFst = rofst;
|
dva.MyROFst = rofst;
|
||||||
docver.Save();
|
SetAssociationROFiguresLoading(docver, "Started"); // B2017-125 flag was we are loading the RO figures
|
||||||
|
//docver.Save();
|
||||||
ROFSTLookup myLookup = ROFstInfo.GetJustROFst(rofst.ROFstID).GetROFSTLookup(DocVersionInfo.Get(docver.VersionID));
|
ROFSTLookup myLookup = ROFstInfo.GetJustROFst(rofst.ROFstID).GetROFSTLookup(DocVersionInfo.Get(docver.VersionID));
|
||||||
// Keep a list of ROIDs for Images that have changed.
|
// Keep a list of ROIDs for Images that have changed.
|
||||||
|
List<string> MyChangedFigureROIDs = UpdateROFigures(rdi, myProgressBarRefresh, rofst, rodb, myLookup,docver);
|
||||||
|
// Now update the usages: compare old to new rofsts and update usages accordingly, i.e. modified
|
||||||
|
// values, deleted ros, etc.
|
||||||
|
if (!Volian.Base.Library.VlnSettings.GetCommandFlag("NOUPDATERO") && Volian.Base.Library.VlnSettings.DoUpdateRO)
|
||||||
|
UpdateROValuesText(origROFst, rofst, DocVersionInfo.Get(docver.VersionID),myProgressBarRefresh, MyChangedFigureROIDs);
|
||||||
|
return rofst;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static List<string> UpdateROFigures(RODbInfo rdi, ROFstInfoProgressBarRefresh myProgressBarRefresh, ROFst rofst, RODb rodb, ROFSTLookup myLookup, DocVersion docVer)
|
||||||
|
{
|
||||||
List<string> MyChangedFigureROIDs = new List<string>();
|
List<string> MyChangedFigureROIDs = new List<string>();
|
||||||
// Now load any images in... type 8 - integrated graphics ro type
|
// Now load any images in... type 8 - integrated graphics ro type
|
||||||
using (ROImageInfoList myROImages = ROImageInfoList.GetByRODbIDNoData(rdi.RODbID))
|
using (ROImageInfoList myROImages = ROImageInfoList.GetByRODbIDNoData(rdi.RODbID))
|
||||||
@ -414,12 +441,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (myUnChangedROImages.Count > 0)
|
if (myUnChangedROImages.Count > 0)
|
||||||
using (FigureInfoList fil = FigureInfoList.AddByROFstIDImageIDs(rofst.ROFstID, buildImageIDString(myUnChangedROImages))) ;
|
using (FigureInfoList fil = FigureInfoList.AddByROFstIDImageIDs(rofst.ROFstID, buildImageIDString(myUnChangedROImages))) ;
|
||||||
}
|
}
|
||||||
// Now update the usages: compare old to new rofsts and update usages accordingly, i.e. modified
|
SetAssociationROFiguresLoading(docVer, string.Empty); // B2017-125 loading RO Figures is completed
|
||||||
// values, deleted ros, etc.
|
return MyChangedFigureROIDs;
|
||||||
if (!Volian.Base.Library.VlnSettings.GetCommandFlag("NOUPDATERO") && Volian.Base.Library.VlnSettings.DoUpdateRO)
|
|
||||||
UpdateROValuesText(origROFst, rofst, DocVersionInfo.Get(docver.VersionID),myProgressBarRefresh, MyChangedFigureROIDs);
|
|
||||||
return rofst;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get a list of ROIDs for figures that have changed content. This is only used when the contents of a figure
|
/// Get a list of ROIDs for figures that have changed content. This is only used when the contents of a figure
|
||||||
|
@ -816,7 +816,7 @@ namespace Volian.Controls.Library
|
|||||||
_ProgressBar.Text = "";
|
_ProgressBar.Text = "";
|
||||||
_ProgressBar.Maximum = 0;
|
_ProgressBar.Maximum = 0;
|
||||||
_ProgressBar.Value = 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.Text = "";
|
||||||
_ProgressBar.Maximum = 0;
|
_ProgressBar.Maximum = 0;
|
||||||
_ProgressBar.Value = 0;
|
_ProgressBar.Value = 0;
|
||||||
_ProgressBar.TextVisible = false;
|
//_ProgressBar.TextVisible = false; // B2017-125 text was not always being displayed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -2914,7 +2914,7 @@ namespace Volian.Controls.Library
|
|||||||
if (Mydvi.DocVersionAssociations.Count < 1)
|
if (Mydvi.DocVersionAssociations.Count < 1)
|
||||||
{
|
{
|
||||||
FinalProgressBarMessage = "No ROs associated";
|
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;
|
return;
|
||||||
}
|
}
|
||||||
ROFstInfo roFstInfo = Mydvi.DocVersionAssociations[0].MyROFst;
|
ROFstInfo roFstInfo = Mydvi.DocVersionAssociations[0].MyROFst;
|
||||||
@ -2923,20 +2923,20 @@ namespace Volian.Controls.Library
|
|||||||
if (!File.Exists(rofstPath))
|
if (!File.Exists(rofstPath))
|
||||||
{
|
{
|
||||||
FinalProgressBarMessage = "No existing RO.FST";
|
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;
|
return;
|
||||||
}
|
}
|
||||||
FileInfo fiRofst = new FileInfo(rofstPath);
|
FileInfo fiRofst = new FileInfo(rofstPath);
|
||||||
if (roFstInfo.DTS == fiRofst.LastWriteTimeUtc)
|
if (roFstInfo.DTS == fiRofst.LastWriteTimeUtc)
|
||||||
{
|
{
|
||||||
FinalProgressBarMessage = "RO.FST up to date";
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (roFstInfo.DTS > fiRofst.LastWriteTimeUtc)
|
if (roFstInfo.DTS > fiRofst.LastWriteTimeUtc)
|
||||||
{
|
{
|
||||||
FinalProgressBarMessage = "RO.FST is older";
|
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;
|
return;
|
||||||
}
|
}
|
||||||
Cursor = Cursors.WaitCursor;
|
Cursor = Cursors.WaitCursor;
|
||||||
@ -2976,6 +2976,7 @@ namespace Volian.Controls.Library
|
|||||||
ProgressBar.Maximum = max;
|
ProgressBar.Maximum = max;
|
||||||
ProgressBar.Value = value;
|
ProgressBar.Value = value;
|
||||||
ProgressBar.Text = text;
|
ProgressBar.Text = text;
|
||||||
|
ProgressBar.TextVisible = true; //B2017-125 text was not always visible
|
||||||
Application.DoEvents();
|
Application.DoEvents();
|
||||||
}
|
}
|
||||||
private string InitialProgressBarMessage
|
private string InitialProgressBarMessage
|
||||||
|
@ -1787,7 +1787,7 @@ namespace Volian.Controls.Library
|
|||||||
// to modify code to get which one (when there is more than one)
|
// to modify code to get which one (when there is more than one)
|
||||||
if (MyDVI.DocVersionAssociations.Count < 1)
|
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";
|
FinalProgressBarMessage = "No ROs associated";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1795,20 +1795,20 @@ namespace Volian.Controls.Library
|
|||||||
string rofstPath = roFstInfo.MyRODb.FolderPath + @"\ro.fst";
|
string rofstPath = roFstInfo.MyRODb.FolderPath + @"\ro.fst";
|
||||||
if (!File.Exists(rofstPath))
|
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";
|
FinalProgressBarMessage = "No existing RO.FST";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FileInfo fiRofst = new FileInfo(rofstPath);
|
FileInfo fiRofst = new FileInfo(rofstPath);
|
||||||
if (roFstInfo.DTS == fiRofst.LastWriteTimeUtc)
|
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";
|
FinalProgressBarMessage = "RO.FST up to date";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (roFstInfo.DTS > fiRofst.LastWriteTimeUtc)
|
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";
|
FinalProgressBarMessage = "Older RO.FST";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user