private void btnAdd_Click_1(object sender, EventArgs e) { Employee employee = new Employee(); employee.UserName = txtUserName.Text; employee.Password = txtPassword.Text; employee.firstName = txtFirstName.Text; employee.lastName = txtFirstName.Text; employee.IsAdmin = chkAdmin.Checked; employee.DateOfBirth = dtpDateOfBirth.Value; UserOperations bl = new UserOperations(); bl.AddEmployee(employee); MessageBox.Show("Operation succesful"); }