private void AddEmployee() { Employee EGlobal = new Employee(); EmployeeModel EModel = new EmployeeModel(EGlobal); EmployeesList.Add(EModel); SelectedEmployee = EModel; }
private void btnAdd_Click(object sender, EventArgs e) { Employees employees = new Employees(); Employees_AddEdit aeemployees = new Employees_AddEdit(employees); if (aeemployees.ShowDialog() == System.Windows.Forms.DialogResult.OK) { employeesList.Add(employees); loadData(); } }
public void isEmployeeOf(Employee p) { EmployeesList.Add(p); }
public void isEmployeeOf(Employee e) { EmployeesList.Add(e); }