/// <summary> /// Initializes a new instance of the <see cref="AUserCommand"/> class. /// </summary> /// <param name="pTimeout">The timeout of the command.</param> /// <param name="pProgressEvaluator">The progress evaluator.</param> protected AUserCommand(TimeSpan?pTimeout, IProgressEvaluator pProgressEvaluator) { this.Timeout = pTimeout; this.mDoingProgressNotifier = new NotifyProgress(); this.mDoingProgressNotifier.Evaluator = pProgressEvaluator; this.mDoingProgressNotifier.ProgressChanged += this.OnDoingProgressChanged; this.mUndoingProgressNotifier = new NotifyProgress(); this.mUndoingProgressNotifier.Evaluator = pProgressEvaluator; this.mUndoingProgressNotifier.ProgressChanged += this.OnUndoingProgressChanged; }
/// <summary> /// Initializes a new instance of the <see cref="CommandExecutionEventArgs"/> class. /// </summary> /// <param name="pCommand">The executed command.</param> /// <param name="pProgress">The command progress evaluator.</param> public CommandExecutionEventArgs(IUserCommand pCommand, IProgressEvaluator pProgress) : this(pCommand, pProgress, string.Empty) { }
/// <summary> /// Initializes a new instance of the <see cref="CommandExecutionEventArgs"/> class. /// </summary> /// <param name="pCommand">The executed command.</param> /// <param name="pProgress">The command progress evaluator.</param> /// <param name="pFailureRaison">The command failure raison.</param> public CommandExecutionEventArgs(IUserCommand pCommand, IProgressEvaluator pProgress, string pFailureRaison) { this.Progress = pProgress; this.FailureRaison = pFailureRaison; }