private void ButtonSubmit_Click(object sender, EventArgs e) { int ID = int.Parse(BoxID.Text); string name = BoxName.Text; bool manager = BoxManager.Checked; DatabaseTools.AddEmployee(ID, name, manager); MessageBox.Show("Successfully Added Employee"); this.Close(); }