private void btnSaveContinue_Click(object sender, EventArgs e)
        {
            var frmPatientInfo = new FrmPatientInfo("LIST");

            frmPatientInfo.grdList      = grdPatientList;
            frmPatientInfo.gv_dtpatient = dtPatientList;
            frmPatientInfo.em_Action    = action.Insert;
            frmPatientInfo.ShowDialog();
            if (em_Action == action.ConfirmData)
            {
                v_Patient_Id = frmPatientInfo.v_PatientID;
            }
            grdPatientList_SelectionChanged(grdPatientList, new EventArgs());
            txtBarcode.Clear();
            stsTestTypeList.Focus();
            // ModifyCommand();
        }
 private void UpdatePatientInfo()
 {
     if (grdPatientList.CurrentRow != null)
     {
         var frmPatientInfo = new FrmPatientInfo("LIST");
         frmPatientInfo.grdList       = grdPatientList;
         frmPatientInfo.gv_dtpatient  = dtPatientList;
         frmPatientInfo.drPatientInfo = Utility.FetchOnebyCondition(dtPatientList,
                                                                    "Patient_ID=" +
                                                                    Utility.Int32Dbnull(
                                                                        Utility.GetValueFromGridColumn(
                                                                            grdPatientList, "colPatient_ID",
                                                                            grdPatientList.CurrentRow.Index), -1));
         frmPatientInfo.em_Action = action.Update;
         frmPatientInfo.ShowDialog();
         //  grdPatientList_SelectionChanged(grdPatientList, new EventArgs());
     }
 }