private void OnClosePopup(object sender, EventArgs e)
        {
            if (ColorBoxPopupForm != null)
            {
                InvokeDropUp(e);
                Color value = ColorBoxPopupForm.SelectedColor;
                if (this.SelectedColor != value)
                {
                    this.SelectedColor = value;
                    InvokeSelectedIndexChanged(EventArgs.Empty);
                }

                ColorBoxPopupForm.Dispose();
                ColorBoxPopupForm = null;
            }
        }
Beispiel #2
0
        private void OnClosePopup(object sender, EventArgs e)
        {
            if (ColorBoxPopupForm != null)
            {
                this.Pushed = false;
                InvokeDropUp(e);

                Color value = ColorBoxPopupForm.SelectedColor;
                if (this.SelectedColor != value)
                {
                    this.SelectedColor = value;
                }

                ColorBoxPopupForm.Dispose();
                ColorBoxPopupForm = null;
            }
        }