Ejemplo n.º 1
0
        private void Employee_Edit(object sender, EventArgs e)
        {
            Employee_Form employee_form = new Employee_Form(db, selected_employee);

            employee_form.FormClosed += (sv, ev) => { Employees_Update(current_department); };
            employee_form.Show();
        }
Ejemplo n.º 2
0
        private void Employee_Add(object sender, EventArgs e)
        {
            Employee_Form employee_form = new Employee_Form(db, current_department);

            employee_form.FormClosed += (sv, ev) => { if (current_department != null)
                                                      {
                                                          Employees_Update(current_department);
                                                      }
            };
            employee_form.Show();
        }