IEnumerable <Control> ErrorDisplayStyle.GetControls(IEnumerable <string> errors) { return(errors.Any() ? new Section(heading, ListErrorDisplayStyle.GetErrorMessageListBlock(ImmutableArray <string> .Empty, errors).ToSingleElementArray(), style: style) .ToSingleElementArray() : new Control[0]); }
IEnumerable <Control> ErrorDisplayStyle.GetControls(IEnumerable <string> errors) { return(errors.Any() ? new Section(heading, ListErrorDisplayStyle.GetErrorMessageListBlock(ImmutableArray <string> .Empty, errors).ToCollection(), style: style) .ToCollection() : Enumerable.Empty <Control>()); }
private DisplayableElementLocalData getErrorFocusableElementLocalData( ElementContext context, string elementName, IReadOnlyCollection <ElementAttribute> attributes) => ListErrorDisplayStyle.GetErrorFocusableElementLocalData(context, elementName, ErrorSourceSet, attributes);