private void dg_employees_CellClick(object sender, DataGridViewCellEventArgs e) { var emp_id = int.Parse(dg_employees.CurrentRow.Cells["ID"].Value.ToString()); frm_employee_info _frmEmployeeInfo = new frm_employee_info(this, emp_id, this._user_id); _frmEmployeeInfo.ShowDialog(); }
private void btn_add_employee_Click(object sender, EventArgs e) { frm_employee_info _add_employee = new frm_employee_info(); _add_employee.ShowDialog(); }