private void btnUpdate_Click(object sender, EventArgs e) { try { frmStaffDetails myS = new frmStaffDetails(); myS.empIdStr = this.empId; myS.isEdit = true; myS.ShowDialog(); } catch (Exception ex) { MessageBox.Show("failed in btnUpdate_Click() " + ex.Message); } }
private void btnAddStaff_Click(object sender, EventArgs e) { frmStaffDetails myFrT = new frmStaffDetails(); myFrT.ShowDialog(); }
private void BtnStaff_Click(object sender, EventArgs e) { frmStaffDetails myS = new frmStaffDetails(); myS.ShowDialog(); }