Exemple #1
0
        private void SubmitCreate(object sender, EventArgs e)
        {
            bool isCreated = system.CreateEmployee(txtIdentification.Text, txtEmpName.Text, txtLastName.Text, txtEmail.Text, txtPhone.Text, boxGender.Text, boxMarital.Text, txtAddress.Text, dateBirth.Value.Date, dateHire.Value.Date, txtTitle.Text, txtSalary.Text);

            if (isCreated)
            {
                MessageBox.Show("Success");
                tabControl.SelectedIndex = 0;
            }
            else
            {
                MessageBox.Show("Oops Something Went Wrong");
            }
        }