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