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