Esempio n. 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]);
 }
Esempio n. 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;
 }
Esempio n. 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;
 }