コード例 #1
0
        /// ------------------------------------------------------------------------------------
        protected void ShowPopup()
        {
            if (JITListAcquisition != null)
            {
                Popup.Clear();
                Popup.AddRange(JITListAcquisition());
            }

            Popup.Width = Width;
            var pt = PointToScreen(new Point(0, Height));

            Popup.ShowPopup(pt);
            _popupShowing = true;
        }
コード例 #2
0
        /// ------------------------------------------------------------------------------------
        protected override void OnLeave(EventArgs e)
        {
            base.OnLeave(e);
            Popup.Clear();
            Popup.AddRange(JITListAcquisition());
            Popup.SetCheckedItemsFromDelimitedString(Text);
            Text = Popup.GetCheckedItemsString();
            var cancel = new CancelEventArgs();

            OnValidating(cancel);
            _textControl.Paint -= HandleTextBoxPaint;
            _textControl.Invalidate();
            _popupShowing = false;
        }