private void picRenderBackground_Click(object sender, EventArgs e) { ColorPicker.ColorPickerDialog cpd = new ColorPicker.ColorPickerDialog(); cpd.Color = picRenderBackground.BackColor; if (cpd.ShowDialog() == DialogResult.OK) { picRenderBackground.BackColor = cpd.Color; MadScience.Helpers.saveRegistryValue("renderBackgroundColour", MadScience.Colours.convertColour(picRenderBackground.BackColor)); } }
private void lblPalette4_Click(object sender, EventArgs e) { ColorPicker.ColorPickerDialog cpd = new ColorPicker.ColorPickerDialog(); cpd.Color = lblPalette4.BackColor; cpd.ShowDialog(); lblPalette4.BackColor = cpd.Color; isPreviewImage = true; showDDSChannels(); }
private Color showColourDialog(Color input) { ColorPicker.ColorPickerDialog cpd = new ColorPicker.ColorPickerDialog(); cpd.Color = input; if (cpd.ShowDialog() == DialogResult.OK) { return(cpd.Color); } else { return(input); } }
private void picLstOtherColour_Click(object sender, EventArgs e) { if (lstOtherDetails.SelectedItems.Count == 1) { ColorPicker.ColorPickerDialog cpd = new ColorPicker.ColorPickerDialog(); cpd.Color = picLstOtherColour.BackColor; cpd.ShowDialog(); picLstOtherColour.BackColor = cpd.Color; ListViewItem item = lstOtherDetails.SelectedItems[0]; item.SubItems[0].Text = MadScience.Colours.convertColour(picLstOtherColour.BackColor); item.Text = item.SubItems[0].Text; } }
private Color showColourDialog(Color input) { ColorPicker.ColorPickerDialog cpd = new ColorPicker.ColorPickerDialog(); cpd.Color = input; if (cpd.ShowDialog() == DialogResult.OK) { return cpd.Color; } else { return input; } }