Пример #1
0
 public CheckBoxComboBoxListControl(CheckBoxComboBox owner)
 {
     this.DoubleBuffered    = true;
     this._CheckBoxComboBox = owner;
     this._Items            = new CheckBoxComboBoxItemList(this._CheckBoxComboBox);
     this.BackColor         = SystemColors.Window;
     this.AutoScroll        = true;
     base.ResizeRedraw      = true;
     this.MinimumSize       = new Size(1, 1);
     this.MaximumSize       = new Size(500, 500);
 }
Пример #2
0
 public CheckBoxComboBoxItem(CheckBoxComboBox owner, object comboBoxItem)
 {
     this.DoubleBuffered    = true;
     this._CheckBoxComboBox = owner;
     this._ComboBoxItem     = comboBoxItem;
     if (this._CheckBoxComboBox.DataSource != null)
     {
         this.AddBindings();
     }
     else
     {
         this.Text = comboBoxItem.ToString();
     }
 }
Пример #3
0
 public CheckBoxComboBoxItemList(CheckBoxComboBox checkBoxComboBox)
 {
     this._CheckBoxComboBox = checkBoxComboBox;
 }