private void BackColorButton_Click(object sender, EventArgs e) { if (BackColorDialog.ShowDialog() == DialogResult.OK) { CanvasColor = BackColorDialog.Color; BackColorButton.BackColor = BackColorDialog.Color; } }
private void btn_BackColor_Click(object sender, EventArgs e) { if (BackColorDialog.ShowDialog() == DialogResult.OK) { BackgroundColor = BackColorDialog.Color; btn_BackColor.BackColor = BackColorDialog.Color; } }