/// <summary> /// Widget override constructor /// </summary> /// <param name="widget">Widget to override default</param> public FilePathField(IChoiceWidget widget) : base(widget) { this.ErrorMessages[MessageInvalid] = DefaultErrorMessages.Invalid; this.ErrorMessages[MessageInvalidChoice] = DefaultErrorMessages.InvalidChoice; this.Choices = _filePath; }
/// <summary> /// Widget override constructor /// </summary> /// <param name="widget">Widget to override default</param> public ChoiceField(IChoiceWidget widget) : base(widget) { this.ErrorMessages[MessageInvalid] = DefaultErrorMessages.Invalid; this.ErrorMessages[MessageInvalidChoice] = DefaultErrorMessages.InvalidChoice; }
/// <summary> /// Widget override constructor /// </summary> /// <param name="widget">Widget to override default</param> public MultipleChoiceField(IChoiceWidget widget) : base(widget) { this.ErrorMessages[MessageInvalidList] = DefaultErrorMessages.InvalidList; }