Exemple #1
0
 /// <summary>
 /// The butt save_ click.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void buttSave_Click(object sender, EventArgs e)
 {
     ShiftColors.StartingRed   = this.hScrlBRed.Value;
     ShiftColors.StartingGreen = this.hScrlBGreen.Value;
     ShiftColors.StartingBlue  = this.hScrlBBlue.Value;
     ShiftColors.RedToShift    = this.hScrlBRedToShift.Value;
     ShiftColors.GreenToShift  = this.hScrlBGreenToShift.Value;
     ShiftColors.BlueToShift   = this.hScrlBBlueToShift.Value;
     ShiftColors.WritePlugin();
     this.Close();
 }
Exemple #2
0
        /// <summary>
        /// The update layers preview.
        /// </summary>
        private void UpdateLayersPreview()
        {
            int incrementer = 0;

            for (int counter = 18; counter > -1; counter--)
            {
                this.Controls[counter].BackColor = Color.FromArgb(
                    255,
                    ShiftColors.Shifter(incrementer, hScrlBRedToShift.Value, hScrlBRed.Value),
                    ShiftColors.Shifter(incrementer, hScrlBGreenToShift.Value, hScrlBGreen.Value),
                    ShiftColors.Shifter(incrementer, hScrlBBlueToShift.Value, hScrlBBlue.Value));
                incrementer++;
            }
        }