Exemplo n.º 1
0
        private void btn_Add_Emp_Click(object sender, EventArgs e)
        {
            DataGridViewRow selectedRow = null;

            editEmpForm             = new EditEmpForm(selectedRow);
            editEmpForm.FormClosed += editEmpForm_FormClosed;
            editEmpForm.Show();
        }
Exemplo n.º 2
0
 private void dgv_Employees_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgv_Employees.SelectedCells.Count > 0)
     {
         int             selectedrowindex = dgv_Employees.SelectedCells[0].RowIndex;
         DataGridViewRow selectedRow      = dgv_Employees.Rows[selectedrowindex];
         editEmpForm             = new EditEmpForm(selectedRow);
         editEmpForm.FormClosed += editEmpForm_FormClosed;
         editEmpForm.Show();
     }
 }