private void BtNoAlphaOnClick(object sender, EventArgs eventArgs) { using (var colorPickerDialog = new ColorPickerDialog(this, _panelNoAlpha.Color)) { colorPickerDialog.ColorChanged += (o, args) => _panelNoAlpha.Color = args.Color; colorPickerDialog.Show(); } }