Exemplo n.º 1
0
        public CheckBoxComboBox()
        {
            this.InitializeComponent();
            this._CheckBoxProperties = new CheckBoxProperties();
            this._CheckBoxProperties.PropertyChanged += new EventHandler(this._CheckBoxProperties_PropertyChanged);
            CheckBoxComboBoxListControlContainer checkBoxComboBoxListControlContainer = new CheckBoxComboBoxListControlContainer();

            this._CheckBoxComboBoxListControl = new CheckBoxComboBoxListControl(this);
            this._CheckBoxComboBoxListControl.Items.CheckBoxCheckedChanged += new EventHandler(this.Items_CheckBoxCheckedChanged);
            checkBoxComboBoxListControlContainer.Controls.Add(this._CheckBoxComboBoxListControl);
            checkBoxComboBoxListControlContainer.Padding = new Padding(4, 0, 0, 14);
            this._CheckBoxComboBoxListControl.Dock       = DockStyle.Fill;
            base.DropDownControl    = checkBoxComboBoxListControlContainer;
            this.dropDown.Resizable = true;
        }
Exemplo n.º 2
0
 internal void ApplyProperties(CheckBoxProperties properties)
 {
     base.Appearance   = properties.Appearance;
     base.AutoCheck    = properties.AutoCheck;
     base.AutoEllipsis = properties.AutoEllipsis;
     this.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;
     this.ForeColor   = properties.ForeColor;
     this.RightToLeft = properties.RightToLeft;
     this.TextAlign   = properties.TextAlign;
     base.ThreeState  = properties.ThreeState;
 }