Exemplo n.º 1
0
 protected void btnCreateEmployee_Click(object sender, EventArgs e)
 {
     //checks to see if employee account already exists
     try
     {
         int EmployeeID;
         int rewardbalance = 0;
         EmployeeID = Convert.ToInt32(EmployeeIDList.Text);
         Account_Class Account = new Account_Class(EmployeeID, rewardbalance);
         errorMsgTxt2.Text = "Employee Account Created for EmployeeID: " + EmployeeID;
     }
     catch (Exception)
     {
         errorMsgTxt2.Text = "Employee Account Already Exists.";
     }
 }