// Buttons private void buttonOK_Click(object sender, EventArgs e) { paletteSet.CopyTo(paletteSetBackup); paletteSet.CopyTo(paletteSetBackup2); this.Close(); if (!autoUpdate.Checked) { updater.UpdatePalette(); } }
private void buttonReset_Click(object sender, EventArgs e) { this.Updating = true; levelsReds.Value = levelsRedsBar.Value = 0; levelsGreens.Value = levelsGreensBar.Value = 0; levelsBlues.Value = levelsBluesBar.Value = 0; switchRedsA.Checked = true; switchGreensA.Checked = false; switchBluesA.Checked = false; switchRedsB.Checked = true; switchGreensB.Checked = false; switchBluesB.Checked = false; equateRedsA.Checked = true; equateGreensA.Checked = false; equateBluesA.Checked = false; equateRedsB.Checked = true; equateGreensB.Checked = false; equateBluesB.Checked = false; greyscale.Checked = false; negative.Checked = false; brightness.Value = trackBarBrightness.Value = 0; contrast.Value = trackBarContrast.Value = 0; thresholdApply.Checked = false; threshold.Value = trackBarThreshold.Value = 128; colorizeApply.Checked = false; colorizeHue.Value = colorizeHueBar.Value = 128; colorizeSaturation.Value = colorizeSaturationBar.Value = 128; this.Updating = false; paletteSetBackup2.CopyTo(paletteSetBackup); DoAdjustment(); paletteSetBackup2.CopyTo(paletteSet); }