/// <summary> /// Determines whether validation error is visible. /// </summary> /// <param name="rowPresenter">The <see cref="RowPresenter"/>.</param> /// <param name="columns">The columns.</param> /// <returns><see langword="true"/> if validation error is visible, otherwise <see langword="false"/>.</returns> public bool IsVisible(RowPresenter rowPresenter, IColumns columns) { rowPresenter.VerifyNotNull(nameof(rowPresenter)); if (columns == null || columns.Count == 0) { return(false); } if (_progress == null) { return(true); } return(Exists(_progress, rowPresenter, columns)); }
/// <summary> /// Determines whether validation error exists for specified row presenter. /// </summary> /// <param name="rowPresenter">The row presenter.</param> /// <returns><see langword="true"/> if validation error exists, otherwise <see langword="false"/>.</returns> public bool HasValidationError(RowPresenter rowPresenter) { rowPresenter.VerifyNotNull(nameof(rowPresenter)); return(RowValidation.HasError(rowPresenter, this, true)); }
/// <summary> /// Get the validation info. /// </summary> /// <param name="rowPresenter">The row presenter.</param> /// <returns>The validation info.</returns> public ValidationInfo GetValidationInfo(RowPresenter rowPresenter) { rowPresenter.VerifyNotNull(nameof(rowPresenter)); return(RowValidation.GetInfo(rowPresenter, this)); }