public StepValidationStatus Validate(IStep step) { StepValidationStatus status = step.Validate(_cells).GetStatus(); if (status == StepValidationStatus.Valid && AllErrors().Count() > 0) { return(StepValidationStatus.Warning); } return(status); }
public static Icon IconFor(StepValidationStatus status) { switch (status) { case StepValidationStatus.Valid: return(Unknown); case StepValidationStatus.Error: return(Failed); case StepValidationStatus.Warning: return(Warning); } throw new ArgumentOutOfRangeException("status"); }