예제 #1
0
 internal void ApplyProperties(CheckBoxProperties properties)
 {
     base.Appearance   = properties.Appearance;
     base.AutoCheck    = properties.AutoCheck;
     base.AutoEllipsis = properties.AutoEllipsis;
     AutoSize          = properties.AutoSize;
     base.CheckAlign   = properties.CheckAlign;
     base.FlatAppearance.BorderColor        = properties.FlatAppearanceBorderColor;
     base.FlatAppearance.BorderSize         = properties.FlatAppearanceBorderSize;
     base.FlatAppearance.CheckedBackColor   = properties.FlatAppearanceCheckedBackColor;
     base.FlatAppearance.MouseDownBackColor = properties.FlatAppearanceMouseDownBackColor;
     base.FlatAppearance.MouseOverBackColor = properties.FlatAppearanceMouseOverBackColor;
     base.FlatStyle   = properties.FlatStyle;
     ForeColor        = properties.ForeColor;
     base.RightToLeft = properties.RightToLeft;
     base.TextAlign   = properties.TextAlign;
     base.ThreeState  = properties.ThreeState;
 }
예제 #2
0
 public MultiselectComboBox()
 {
     InitializeComponent();
     _CheckBoxProperties = new CheckBoxProperties();
     _CheckBoxProperties.PropertyChanged += _CheckBoxProperties_PropertyChanged;
     _CheckBoxComboBoxListControl         = new MultiselectComboBoxListControl(this);
     _CheckBoxComboBoxListControl.Items.CheckBoxCheckedChanged += Items_CheckBoxCheckedChanged;
     _CheckBoxComboBoxListControl.Dock = DockStyle.Fill;
     base.DropDownControl = new MultiselectComboBoxListControlContainer
     {
         Padding  = new Padding(4, 0, 0, 14),
         Controls =
         {
             (Control)_CheckBoxComboBoxListControl
         }
     };
     PopupDropDown.Resizable = true;
     base.Click += MultiselectComboBox_Click;
 }