public DBMigratorEventArgs ( uint startingStep, uint currentStep, uint totalSteps ) : System | ||
startingStep | uint | See |
currentStep | uint | See |
totalSteps | uint | See |
return | System |
public DBMigratorEventArgs(uint startingStep, uint currentStep, uint totalSteps)
{
this.StartingStep = startingStep;
this.CurrentStep = currentStep;
this.TotalSteps = totalSteps;
if (totalSteps > startingStep)
this.PercentageComplete = (100M * (currentStep - startingStep + 1)) / (1 + (decimal)totalSteps - (decimal)startingStep);
else
this.PercentageComplete = 0;
}
}