Pass the frmLoader to the ROFixer object so that status can be displayed as steps are processed.

Pass the frmLoader to the ROFixer object so that status can be displayed as steps are processed
Fixed MyValue so that unchanged values will not be displayed as if they had changed.
Added Status outut as changed RO Values are found.
Display a MessageBox when processing is complete.
This commit is contained in:
Rich
2014-03-15 10:02:55 +00:00
parent ac8a99dd84
commit 0231bdc4ca
2 changed files with 17 additions and 4 deletions

View File

@@ -1148,7 +1148,7 @@ namespace DataLoader
private void fixROValuesToolStripMenuItem_Click(object sender, EventArgs e)
{
Database.VEPROMS_Connection = MySettings.ConnectionString.Replace("{DBName}", MySettings.DBName);
ROFixer myRoFixer = new ROFixer(MySettings.LogFilePath);
ROFixer myRoFixer = new ROFixer(MySettings.LogFilePath,this);
myRoFixer.StatusChanged += new ROFixerEvent(myRoFixer_StatusChanged);
TimeSpan howlong = myRoFixer.Process();
string RoFixTime = string.Format("Fix RO Values completion time: {0:D2}:{1:D2}:{2:D2}.{3}", howlong.Hours, howlong.Minutes, howlong.Seconds, howlong.Milliseconds);