private void Char1Dex_TextChanged(object sender, EventArgs e)
{
try
{
this.Group[0].SetDEX(Convert.ToInt32(Char1Dex.Text));
Char1DEX_MOD.Text = this.Group[0].GetDEX_Mod().ToString();
}
catch
{
if (isError && !Char1Dex.Text.Equals(""))
{
ErrorMSG error = new ErrorMSG();
//set error message
error.ErrorLabel.Text = "Error: This box takes integers only (0-9)";
error.Show();
isError = false;
///
Char1Dex.Text = "";
////
isError = true;
}//end if
if (Char1Dex.Text.Equals(""))
Char1DEX_MOD.Text = "0";
}
}