示例#1
0
            public ComboBoxField(string name, string label, ArrayInstance list)
                : base(name, label, FieldType.ComboBox, new ComboBox())
            {
                var comboBox = (ComboBox)Control;

                comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
                comboBox.FlatStyle     = FlatStyle.System;

                comboBox.Items.Add("");

                list.ForEach((index, value) => comboBox.Items.Add(value.ConvertToString()));
            }