Exemplo n.º 1
0
        public CheckBoxComboBoxListControl(MultiSelectComboBox owner)
            : base()
        {
            DoubleBuffered    = true;
            _CheckBoxComboBox = owner;
            _Items            = new CheckBoxComboBoxItemList(_CheckBoxComboBox);
            BackColor         = SystemColors.Window;

            AutoScroll   = true;
            ResizeRedraw = true;

            MinimumSize = new Size(1, 1);
            MaximumSize = new Size(500, 500);
        }
Exemplo n.º 2
0
 public CheckBoxComboBoxItem(MultiSelectComboBox owner, object comboBoxItem)
     : base()
 {
     DoubleBuffered    = true;
     _CheckBoxComboBox = owner;
     _ComboBoxItem     = comboBoxItem;
     if (_CheckBoxComboBox.DataSource != null)
     {
         AddBindings();
     }
     else
     {
         if (comboBoxItem is DropDownCheckOption checkOption && checkOption.DisplayValue != null)
         {
             Tag  = checkOption.Id.ToString();
             Text = checkOption.DisplayValue.ToString();
         }