Chromatics.Chromatics.txt_DPSNotify_ValueChanged C# (CSharp) Method

txt_DPSNotify_ValueChanged() private method

private txt_DPSNotify_ValueChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void txt_DPSNotify_ValueChanged(object sender, EventArgs e)
        {
            if (txt_DPSNotify.Value > txt_DPSlimit.Value)
            {
                MessageBox.Show("Notify DPS value cannot be higher than Target DPS value.");
                txt_DPSNotify.Value = txt_DPSlimit.Value;
                txt_DPSNotify.ForeColor = System.Drawing.SystemColors.WindowText;
                txt_DPSNotify.BackColor = System.Drawing.SystemColors.Window;
            }
            else if (txt_DPSNotify.Value == -1)
            {
                txt_DPSNotify.ForeColor = System.Drawing.Color.DarkGray;
                txt_DPSNotify.BackColor = System.Drawing.Color.LightGray;
            }
            else
            {
                txt_DPSNotify.ForeColor = System.Drawing.SystemColors.WindowText;
                txt_DPSNotify.BackColor = System.Drawing.SystemColors.Window;
            }

            SaveSettings();
        }
Chromatics