Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            WizardStep otherStep = (WizardStep)obj;

            return(this.StepId == otherStep.StepId && this.StepName.Equals(otherStep.StepName, StringComparison.OrdinalIgnoreCase));
        }