/// <summary> /// Handles the Click event of the colorButton control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void colorButton_Click(object sender, EventArgs e) { ComboColorPickerDialog d = new ComboColorPickerDialog(colorLabel.BackColor, colorButton); if (d.ShowDialog() == DialogResult.OK) { ChangeColor(d.Color); } }
/// <summary> /// Handles the Click event of the backColorButton control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void backColorButton_Click(object sender, EventArgs e) { ComboColorPickerDialog d = new ComboColorPickerDialog(backColorLabel.BackColor, backColorButton); if (d.ShowDialog() == DialogResult.OK) { backColorLabel.BackColor = d.Color; } UpdateHatch(); }
/// <summary> /// Handles the Click event of the hatchColorButton control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void hatchColorButton_Click(object sender, EventArgs e) { ComboColorPickerDialog d = new ComboColorPickerDialog(hatchColorLabel.BackColor, hatchColorButton); if (d.ShowDialog() == DialogResult.OK) { hatchColorLabel.BackColor = Color.FromArgb((int)hatchAlphaNud.Value, d.Color); } UpdateHatch(); }
/// <summary> /// Handles the Click event of the solidColorButton control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void solidColorButton_Click(object sender, EventArgs e) { ComboColorPickerDialog d = new ComboColorPickerDialog(solidColorLabel.BackColor, solidColorButton); if (d.ShowDialog() == DialogResult.OK) { solidColorLabel.BackColor = d.Color; } UpdateSolid(); }