Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        public ColumnChooserButton()
        {
            AutoSize = false;
            Image    = ResourceImageCache.ColumnChooser;
            Size     = new Size(Image.Width + 4, Image.Height + 4);
            Text     = string.Empty;

            if (!DesignMode)
            {
                ColChooserPopup = new MultiValuePickerPopup();
                ColChooserPopup.ItemCheckChanged += HandleColChooserItemCheckChanged;
            }
        }
Exemplo n.º 2
0
        /// ------------------------------------------------------------------------------------
        public MultiValueDropDownBox()
        {
            Popup = new MultiValuePickerPopup();
            Popup.PopupOpening     += OnDropDownOpening;
            Popup.PopupClosing     += OnPopupClosing;
            Popup.ItemCheckChanged += HandleItemCheckChanged;

            Font         = Program.DialogFont;
            _textControl = CreateTextControl();
            InitializeComponent();
            InitializeTextControl();
            _panelButton.Width = SystemInformation.VerticalScrollBarWidth;

            _panelButton.MouseEnter += delegate { _panelButton.Invalidate(); };
            _panelButton.MouseLeave += delegate { _panelButton.Invalidate(); };
        }