private void btnSearchPatient_Click(object sender, EventArgs e)
        {
            if (Global.IsDirty)
            {
                Initialize();
            }
            if (cbxCaseNumber.Text.Trim() == string.Empty)
            {
                MSGBox.ShowBox("Invalid CaseNuber!", "SearchPatient", MSGLevel.Warning);
                return;
            }

            ResetPateitnReqRes();

            ResetMDSReqRes();

            ChangeSelectedTabPage(tbpPatient);
            // Start the asynchronous operation.
            bgWorker.RunWorkerAsync(cbxCaseNumber.Text.Trim());

            loadForm.ResizeView();
            loadForm.ShowDialog();
        }
        private void btnMDSCheck_Click(object sender, EventArgs e)
        {
            if (Global.IsDirty)
            {
                Initialize();
            }

            if (cbxItemCodes.Text.Trim() == string.Empty)
            {
                MSGBox.ShowBox("Invalid ItemCode!", "NDSCheck", MSGLevel.Warning);

                return;
            }

            ResetMDSReqRes();

            ChangeSelectedTabPage(tbpMDSCheck);

            bgWorkerMDSCheck.RunWorkerAsync(cbxItemCodes.Text.ToString());

            loadForm.ResizeView();
            loadForm.ShowDialog();
        }