Example #1
0
        private void AddEmployeeButton_Click(object sender, EventArgs e)
        {
            var employeeForm = new EmployeeSetup(_selectedDepartmentId);

            employeeForm.Changed += InitData;
            employeeForm.ShowDialog();
        }
Example #2
0
        private void EmployeeDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            var employeeForm = new EmployeeSetup(_selectedDepartmentId, _employees[e.RowIndex].ID);

            employeeForm.Changed += InitData;
            employeeForm.ShowDialog();
        }