示例#1
0
        /// <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;
        }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <summary>
 /// Widget override constructor
 /// </summary>
 /// <param name="widget">Widget to override default</param>
 public MultipleChoiceField(IChoiceWidget widget)
     : base(widget)
 {
     this.ErrorMessages[MessageInvalidList] = DefaultErrorMessages.InvalidList;
 }