Example #1
0
 public Select(HtmlForm parentForm, string name, bool multiple, OptionInfo[] optionInfos) : base(parentForm, name)
 {
     this.multiple = multiple;
     this.options = new Option[optionInfos.Length];
     for (int i = 0; i < optionInfos.Length; i++)
         this.options[i] = new Option(this, optionInfos[i]);
 }
Example #2
0
 public Option(Select parentSelect, OptionInfo optionInfo)
 {
     this.parentSelect = parentSelect;
     this.label = optionInfo.Label;
     this.value = optionInfo.Value;
     if (this.value == null)
         this.value = this.label;
     this.selected = optionInfo.Selected;
 }
Example #3
0
 public Option(Select parentSelect, OptionInfo optionInfo)
 {
     this.parentSelect = parentSelect;
     this.label        = optionInfo.Label;
     this.value        = optionInfo.Value;
     if (this.value == null)
     {
         this.value = this.label;
     }
     this.selected = optionInfo.Selected;
 }