System.Windows.Forms.ColorPicker.OnMouseClick C# (CSharp) Method

OnMouseClick() protected method

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void
        protected override void OnMouseClick(MouseEventArgs e)
        {
            if (_currentForm == null)
            {
                _currentForm = new ColorPickerForm(this);
                _currentForm.Color = Color;
                _currentForm.ColorChanged += (object sender, EventArgs args) =>
                {
                    Color = _currentForm.Color;
                    ColorChanged(this, null);
                };
                _currentForm.OnDisposing += (object sender, EventArgs args) =>
                {
                    _currentForm = null;
                };
                _currentForm.Show();
            }
            _currentForm.BringToFront();
        }
        protected override void OnPaint(PaintEventArgs e)