private void kbtnUtiliseAsBaseColour_Click(object sender, EventArgs e) { if (pbxColourPreview.BackColor != Color.Transparent) { PaletteColourCreator colourCreator = new PaletteColourCreator(pbxColourPreview.BackColor); colourCreator.Show(); } else { KryptonMessageBox.Show("You must select another colour other than 'Transparent' in order to utilise this feature.", "Invalid Base Colour Detected", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Uses the selected colour. /// </summary> /// <param name="colourControl">The colour control.</param> /// <param name="goStraightToPaletteShader">if set to <c>true</c> [go straight to palette shader].</param> public static void UseSelectedColour(CircularPictureBox colourControl, bool goStraightToPaletteShader = false) { if (goStraightToPaletteShader) { PaletteColourCreator colourCreator = new PaletteColourCreator(colourControl.BackColor); colourCreator.Show(); } else { ColourMixer mixer = new ColourMixer(colourControl.BackColor); mixer.Show(); } }
private void kbtnColourCreator_Click(object sender, EventArgs e) { PaletteColourCreator paletteColourCreator = new PaletteColourCreator(); paletteColourCreator.Show(); }
private void kbtnUtiliseAsBaseColour_Click(object sender, EventArgs e) { PaletteColourCreator paletteColourCreator = new PaletteColourCreator(PaletteColourSelector, Convert.ToInt32(knumAlphaChannelValue.Value), Convert.ToInt32(knumRedChannelValue.Value), Convert.ToInt32(knumGreenChannelValue.Value), Convert.ToInt32(knumBlueChannelValue.Value)); paletteColourCreator.Show(); }
private void kbtnUtiliseBaseColour_Click(object sender, EventArgs e) { PaletteColourCreator paletteColourCreator = new PaletteColourCreator(cpbBaseColour.BackColor); paletteColourCreator.Show(); }