コード例 #1
0
 public MultiselectComboBoxListControl(MultiselectComboBox owner)
 {
     DoubleBuffered    = true;
     _CheckBoxComboBox = owner;
     BackColor         = SystemColors.Window;
     AutoScroll        = true;
     base.ResizeRedraw = true;
     MinimumSize       = new Size(1, 1);
     MaximumSize       = new Size(500, 500);
 }
コード例 #2
0
 public MultiselectComboBoxItem(MultiselectComboBox owner, object comboBoxItem)
 {
     DoubleBuffered    = true;
     _CheckBoxComboBox = owner;
     _ComboBoxItem     = comboBoxItem;
     base.CornerRadius = 0;
     if (_CheckBoxComboBox.DataSource != null)
     {
         AddBindings();
     }
     else
     {
         Text = comboBoxItem.ToString();
     }
 }