public FieldControlChoiceItem(SPChoiceFieldInfo fieldInfo) : base() { if (fieldInfo == null) return; InitControls(fieldInfo); }
private void InitControls(SPChoiceFieldInfo fieldInfo) { this.comboBoxChoice = new ComboBox(); this.comboBoxChoice.DropDownStyle = ComboBoxStyle.DropDownList; this.comboBoxChoice.Items.Clear(); //should only happen if called from the internal constructor if (fieldInfo == null) return; PopulateComboControl(fieldInfo.Values, fieldInfo.DefaultValue); }
private void InitControls(SPChoiceFieldInfo fieldInfo) { this.panel = new FlowLayoutPanel(); this.panel.AutoScroll = true; //should only happen if called from the internal constructor if (fieldInfo == null) return; this.panel.Height = 0; this.panel.VerticalScroll.Enabled = true; ; foreach (string choice in fieldInfo.Values) { AddCheckBox(choice); } this.panel.Height += 5; }
public FieldControlMultiChoiceItem(SPChoiceFieldInfo fieldInfo) : base() { InitControls(fieldInfo); }