Esempio n. 1
0
        private void btn_EditEmployee_Click(object sender, EventArgs e)
        {
            if (dtg_EmployeeList.SelectedRows.Count == 1)
            {
                var selectedEmployee = dtg_EmployeeList.SelectedRows[0].DataBoundItem as Result;

                frmAddEmployee frmAddEmployee = new frmAddEmployee(selectedEmployee);
                frmAddEmployee.ShowDialog();
            }
        }
Esempio n. 2
0
        private void btn_AddEmployee_Click(object sender, EventArgs e)
        {
            frmAddEmployee frmAddEmployee = new frmAddEmployee();

            frmAddEmployee.ShowDialog();
        }