public void Invalidate(WizardStep step, string fieldName, string message) { if (!this.Steps.Contains(step)) { throw new ArgumentException("Step " + step + " not found."); } this.StepErrors[step].Add(new String[] { fieldName, message }); if (step.StepId < this.MinStepIdWithError) { this.MinStepIdWithError = step.StepId; this.StepWithError = step; } }
public override bool Equals(object obj) { WizardStep otherStep = (WizardStep)obj; return(this.StepId == otherStep.StepId && this.StepName.Equals(otherStep.StepName, StringComparison.OrdinalIgnoreCase)); }