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();
}