5 namespace SiliconStudio.Core.Diagnostics
12 private readonly
string message;
13 private readonly
int currentStep;
14 private readonly
int stepCount;
15 private readonly
bool hasKnownSteps;
23 if (message == null)
throw new ArgumentNullException(
"message");
24 this.message = message;
26 hasKnownSteps =
false;
37 if (message == null)
throw new ArgumentNullException(
"message");
38 if (currentStep < 0)
throw new ArgumentOutOfRangeException(
"currentStep",
"Expecting value >= 0");
39 if (stepCount < 1)
throw new ArgumentOutOfRangeException(
"stepCount",
"Expecting value >= 1");
40 this.message = message;
41 this.currentStep = currentStep;
42 this.stepCount = stepCount;
43 this.hasKnownSteps =
true;
63 public bool HasKnownSteps
75 public int CurrentStep
An event indicating the progress of an operation.
ProgressStatusEventArgs(string message)
Initializes a new instance of the ProgressStatusEventArgs class.
ProgressStatusEventArgs(string message, int currentStep, int stepCount)
Initializes a new instance of the ProgressStatusEventArgs class.