Beispiel #1
0
 public CheckBoxComboBoxListControl(CheckBoxComboBox owner)
 {
     DoubleBuffered    = true;
     _checkBoxComboBox = owner;
     _items            = new CheckBoxComboBoxItemList(_checkBoxComboBox);
     BackColor         = SystemColors.Window;
     // AutoScaleMode = AutoScaleMode.Inherit;
     AutoScroll   = true;
     ResizeRedraw = true;
     // if you don't set this, a Resize operation causes an error in the base class.
     MinimumSize = new Size(1, 1);
     MaximumSize = new Size(800, 640);
 }
Beispiel #2
0
 public CheckBoxComboBoxItem(CheckBoxComboBox owner, object comboBoxItem)
 {
     DoubleBuffered    = true;
     _checkBoxComboBox = owner;
     ComboBoxItem      = comboBoxItem;
     if (_checkBoxComboBox.DataSource != null)
     {
         AddBindings();
     }
     else
     {
         Text = comboBoxItem.ToString();
     }
 }
Beispiel #3
0
 public CheckBoxComboBoxItemList(CheckBoxComboBox checkBoxComboBox)
 {
     _checkBoxComboBox = checkBoxComboBox;
 }