Added error handling for the step counter

This commit is contained in:
Rich 2014-10-22 15:24:15 +00:00
parent 91ef383ad4
commit 0a76a0d22c

View File

@ -454,7 +454,10 @@ namespace DataLoader
{
pbProc.Value += incPrc;
pbSect.Value += incSec;
if(pbStep.Value < pbStep.Maximum) pbStep.Value += incStp;
if (pbStep.Value < pbStep.Maximum)
pbStep.Value += incStp;
else
_MyLog.WarnFormat("trying to increment status bar beyond maximum");
}
catch (Exception ex)
{