Exemple #1
0
        private void btnNewEmp_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var ShowForm = new EmployeeManageForm(0);

            ShowForm.ShowDialog();
            ShowEmployee();
        }
Exemple #2
0
        private void btnEditEmp_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var Emp      = (Employee)employeeBindingSource.Current;
            var EmpMForm = new EmployeeManageForm(Emp.Emp_Key);

            EmpMForm.ShowDialog();
            ShowEmployee();
        }
Exemple #3
0
        private void gridVEmp_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
        {
            var Emp = (Employee)employeeBindingSource.Current;

            if (e.Clicks == 2)
            {
                var EmpMForm = new EmployeeManageForm(Emp.Emp_Key);
                EmpMForm.ShowDialog();
                ShowEmployee();
            }
        }