Example #1
0
        private void AddEmployee()
        {
            Employee      EGlobal = new Employee();
            EmployeeModel EModel  = new EmployeeModel(EGlobal);

            EmployeesList.Add(EModel);
            SelectedEmployee = EModel;
        }
Example #2
0
        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();
            }
        }
Example #3
0
 public void isEmployeeOf(Employee p)
 {
     EmployeesList.Add(p);
 }
Example #4
0
 public void isEmployeeOf(Employee e)
 {
     EmployeesList.Add(e);
 }