/// ------------------------------------------------------------------------------------ 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; }
/// ------------------------------------------------------------------------------------ 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; }