private void metroButton1_Click(object sender, EventArgs e)
 {
     try
     {
         if (Validate())
         {
             ClsModule faculty = new ClsModule();
             faculty.Name        = txtName.Text.ToUpper();
             faculty.ShortName   = txtShortname.Text.ToUpper();
             faculty.Description = txtDescription.Text;
             faculty.Created_By  = userId;
             faculty.newFaculty();
             message = faculty.ErrorMessage + "Would you like to add a new faculty again";
             DialogResult dialogResult =
                 MessageBox.Show(message, "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
             ClearEntries();
             if (dialogResult == DialogResult.Yes)
             {
                 ClearEntries();
             }
             else
             {
                 this.Close();
             }
         }
         else
         {
             return;
         }
     }
     catch (Exception ex)
     {
         throw new ArgumentException(ex.ToString());
     }
 }