private void btnChooseColor_Click(object sender, EventArgs e) { ColorPickerDialog dialog = new ColorPickerDialog(); dialog.ShowDialog(); if (dialog.IsCanceled == false) { BackgroundColor = dialog.Color; } }
private void btnColor_Click(object sender, EventArgs e) { ColorPickerDialog dialog = new ColorPickerDialog(); dialog.ShowDialog(); if (dialog.IsCanceled == false) { Color = dialog.Color; if (OnPropChange != null) OnPropChange(this, new TextPropPanel_OnPropChangeArgs(TextProp.Color)); } }