} // importFinished

        //##################################################################
        public DialogResult CustomFormErrorLongMsg__ShowDialog(params string[] args)
        {
            FormErrorLongMsg _form        = new FormErrorLongMsg();
            DialogResult     dialogResult = _form.CustomShowDialog_ret(
                args[0]
                ,
                args[1]
                );

            return(dialogResult);
        }         // CustomFormErrorLongMsg__ShowDialog
        }         // CustomFormError__DBF_TXT__Over12Files__ShowDialog

        //=================================
        public DialogResult CustomFormError__TXT__InEqualityLenghtOfFieldNameAndFieldData__ShowDialog(params string[] args)             // OK
        {
            FormErrorLongMsg _form        = new FormErrorLongMsg();
            DialogResult     dialogResult = _form.CustomShowDialog_ret(
                args[0]
                ,
                args[1]
                );

            return(dialogResult);
        }         // CustomFormError__TXT__InEqualityLenghtOfFieldNameAndFieldData__ShowDialog
        } // importProgressChanged

        private void importFinished()           // OK5
        {
            //==================================================================
// mai: if any error occurs/user Cancel thread, thus show message and reset "IsImporting" with "false" and return to get out of this method:

            if (registerManager.IsOver12Files)                  // OK5
            {
                //==================================================================
                if (fileTypes == Import_Const.FileTypes.DBF)
                {
                    FormErrorShortMsg _form        = new FormErrorShortMsg();
                    DialogResult      dialogResult = _form.CustomShowDialog_ret(
                        $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                        ,
                        $@"ауД©еЛ DBF ар║║гХр 12 Д©еЛ"
                        );
                }
                else if (fileTypes == Import_Const.FileTypes.TXT)
                {
                    FormErrorShortMsg _form        = new FormErrorShortMsg();
                    DialogResult      dialogResult = _form.CustomShowDialog_ret(
                        $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                        ,
                        $@"ауД©еЛ TXT ар║║гХр 12 Д©еЛ"
                        );
                }
                //------------------------------------------------------------------
                lblxMsg.Text    = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = $@"╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false;               // mai: reset
                return;
            }                                      // if (registerManager.IsOver12Files)

            if (registerManager.IsFilesDuplicated) // OK5
            {
                //==================================================================
                if (fileTypes == Import_Const.FileTypes.DBF)
                {
                    FormErrorLongMsg _form        = new FormErrorLongMsg();
                    DialogResult     dialogResult = _form.CustomShowDialog_ret(
                        $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                        ,
                        $@"ауД©еЛ DBF ╚Ис ╢я╖╣ХмД╩╧уИ: " + Environment.NewLine
                        + registerManager.StrFilesDuplicated__Log
                        );
                }
                else if (fileTypes == Import_Const.FileTypes.TXT)
                {
                    FormErrorLongMsg _form        = new FormErrorLongMsg();
                    DialogResult     dialogResult = _form.CustomShowDialog_ret(
                        $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                        ,
                        $@"ауД©еЛ TXT ╚Ис ╢я╖╣ХмД╩╧уИ: " + Environment.NewLine
                        + registerManager.StrFilesDuplicated__Log
                        );
                }
                //------------------------------------------------------------------
                lblxMsg.Text    = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false;                                           //
                return;
            }                                                                  // if (registerManager.IsFilesDuplicated)

            if (!registerManager.TXT__IsEqualityLenghtOfFieldNameAndFieldData) // OK5
            {
                //==================================================================
                FormErrorLongMsg _form        = new FormErrorLongMsg();
                DialogResult     dialogResult = _form.CustomShowDialog_ret(
                    $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                    ,
                    $@"ау╓гра╪т╢╬ер╢Ю║уХбг║я╨╗с╧г╧╒ИмаыеЦ╧А╤гДаХЮ╥Хр║я╨╗с╧г╧╒м╖╙вХм©те╢Л Ц╧Д©еЛ╢я╖╣ХмД╩╧уИ A:" + Environment.NewLine
                    + $@"{registerManager.Str_TXT__InEqualityLenghtOfFieldNameAndFieldData__Log}"
                    );
                //------------------------------------------------------------------
                lblxMsg.Text    = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = true;                                             // YAYA Ю╢таЮ╩Г╧ false
                return;
            }                                                                   /// if (!registerManager.TXT__IsEqualityLenghtOfFieldNameAndFieldData)

            if (!registerManager.IsSuccessGettingDataFromFilesToDataTablesVars) // OK5
            {
                //==================================================================
                if (fileTypes == Import_Const.FileTypes.DBF)
                {
                    FormErrorLongMsg _form        = new FormErrorLongMsg();
                    DialogResult     dialogResult = _form.CustomShowDialog_ret(
                        $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                        ,
                        $@"ДаХ╬╨Д©еЛ DBF ╢я╖╣ХмД╩╧уИ: " + Environment.NewLine
                        + registerManager.StrFilesInProcess
                        );
                }
                else if (fileTypes == Import_Const.FileTypes.TXT)
                {
                    FormErrorLongMsg _form        = new FormErrorLongMsg();
                    DialogResult     dialogResult = _form.CustomShowDialog_ret(
                        $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                        ,
                        $@"ДаХ╬╨Д©еЛ TXT ╢я╖╣ХмД╩╧уИ: " + Environment.NewLine
                        + registerManager.StrFilesInProcess
                        );
                }
                //------------------------------------------------------------------
                lblxMsg.Text    = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false;    // mai: reset
                return;
                //--------------------------
            }             // if (!registerManager.IsSuccessGettingDataFromFilesToDataTablesVars)

            /*  if (!registerManager.DBF_TXT__OPD_CLAIM_CODE__HasFieldName) // OK5
             * {
             *    //==================================================================
             *    if (fileTypes == Import_Const.FileTypes.DBF)
             *    {
             *        FormErrorShortMsg _form = new FormErrorShortMsg();
             *        DialogResult dialogResult = _form.CustomShowDialog_ret(
             *            $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
             *            ,
             *            //$@"Б╩ц╢╣цг╗йм╨╓гра╤ы║╣Им╖╒м╖╙вХм©те╢Л CLAIM_CODE Ц╧Д©еЛ OPD"
             *            $@"Б╩ц╢╣цг╗йм╨╓гра╤ы║╣Им╖╒м╖Б╓ц╖йцИр╖╒Имаые╒м╖А©Иа╒Имаые OPD ДаХ╬╨©те╢Л CLAIM_CODE"    //YAYA
             *        );
             *    }
             *    else if (fileTypes == Import_Const.FileTypes.TXT)
             *    {
             *        FormErrorShortMsg _form = new FormErrorShortMsg();
             *        DialogResult dialogResult = _form.CustomShowDialog_ret(
             *            $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
             *            ,
             *            //$@"Б╩ц╢╣цг╗йм╨╓гра╤ы║╣Им╖╒м╖╙вХм©те╢Л CLAIM_CODE Ц╧Д©еЛ OPD"
             *            $@"Б╩ц╢╣цг╗йм╨╓гра╤ы║╣Им╖╒м╖Б╓ц╖йцИр╖╒Имаые╒м╖А©Иа╒Имаые OPD ДаХ╬╨©те╢Л CLAIM_CODE"    // yaya
             *        );
             *    }
             *    //------------------------------------------------------------------
             *    lblxMsg.Text = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
             *    pgbImport.Value = 0;
             *    //------------------------------------------------------------------
             *    picBxLoading.Visible = false;
             *    //---------------------------------
             *    btnxBrowseFolder.Enabled = true;
             *    //---------------------------------
             *    btnxImport.Text = "╧сЮ╒Ир╒Имаые";
             *    btnxImport.Enabled = true;
             *    //---------------------------------
             *    btnxClose.Enabled = true;
             *
             *    //==================================================================
             *    IsImporting = false;	// mai: reset
             *    return;
             * }
             */
            if (!registerManager.DBF_TXT__CHAD__ADDON_DESC__ADDON_DETAIL__HasFieldName)         // OK5
            {
                //==================================================================
                if (fileTypes == Import_Const.FileTypes.DBF)
                {
                    FormErrorShortMsg _form        = new FormErrorShortMsg();
                    DialogResult      dialogResult = _form.CustomShowDialog_ret(
                        $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                        ,
                        //$@"Б╩ц╢╣цг╗йм╨╓гра╤ы║╣Им╖╒м╖╙вХм©те╢Л ADDON_DESC Ц╧Д©еЛ CHAD"	// mai: ver02
                        $@"Б╩ц╢╣цг╗йм╨╓гра╤ы║╣Им╖╒м╖Б╓ц╖йцИр╖╒Имаые╒м╖А©Иа╒Имаые CHAD ДаХ╬╨©те╢Л ADDON_DESC"                            // mai: ver03
                        );
                }
                else if (fileTypes == Import_Const.FileTypes.TXT)
                {
                    FormErrorShortMsg _form        = new FormErrorShortMsg();
                    DialogResult      dialogResult = _form.CustomShowDialog_ret(
                        $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                        ,
                        //$@"Б╩ц╢╣цг╗йм╨╓гра╤ы║╣Им╖╒м╖╙вХм©те╢Л ADDON_DESC/ADDON_DETAIL Ц╧Д©еЛ CHAD"	// mai: ver02
                        $@"Б╩ц╢╣цг╗йм╨╓гра╤ы║╣Им╖╒м╖Б╓ц╖йцИр╖╒Имаые╒м╖А©Иа╒Имаые CHAD ДаХ╬╨©те╢Л ADDON_DESC"                            // mai: ver03
                        );
                }
                //------------------------------------------------------------------
                lblxMsg.Text    = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false; // mai: reset
                return;
            }                        // if (!registerManager.DBF_TXT__CHAD__ADDON_DESC__ADDON_DETAIL__HasFieldName)

            //if (!registerManager.DBF_TXT_HospitalOS__CHAD__ADDON_DESC__ADDON_DETAIL__IsValidDentistryData)	// OK5
            bool isEnableDentistryHere = false;                 // mai: disable, NOT USE HERE NOW.

            if (isEnableDentistryHere)
            {
                //==================================================================
                if (registerManager.ChkDentistry_.firstInvalidRow == -2)                        // return -2 == catching some errors.
                {
                    FormError__ADDON_DESC__Dentistry _form = new FormError__ADDON_DESC__Dentistry();
                    DialogResult dialogResult = _form.CustomShowDialog_ret(
                        $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                        ,
                        $@"{registerManager.ChkDentistry_.strInvalidRow}" + Environment.NewLine
                        + $@"Б╩ц╢╢ы╣ягмбХр╖║рццп╨ь╚уХ©я╧╣ра╢Ир╧еХр╖╧уИ"
                        );
                }
                else                    // return positive number of the "firstInvalidRow"
                {
                    if (fileTypes == Import_Const.FileTypes.DBF)
                    {
                        FormError__ADDON_DESC__Dentistry _form = new FormError__ADDON_DESC__Dentistry();
                        DialogResult dialogResult = _form.CustomShowDialog_ret(
                            $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                            ,
                            $@"╒Имаые╥я╧╣║цца╪т╢╬ер╢╥уХ©те╢Л ADDON_DESC Ц╧Д©еЛ CHAD" + Environment.NewLine
                            + $@"А╤гАц║╥уХ╪т╢╬ер╢ : {registerManager.ChkDentistry_.firstInvalidRow}" + Environment.NewLine
                            + $@"╗с╧г╧А╤г╥уХ╪т╢╬ер╢╥яИ╖ка╢ : {registerManager.ChkDentistry_.totalInvalidRow}" + Environment.NewLine
                            + $@"црбепЮмуб╢╓гра╪т╢╬ер╢ : {registerManager.ChkDentistry_.strInvalidRow}" + Environment.NewLine
                            + $@"Б╩ц╢╢ы╣ягмбХр╖║рццп╨ь╚уХ©я╧╣ра╢Ир╧еХр╖╧уИ"
                            );
                    }
                    else if (fileTypes == Import_Const.FileTypes.TXT)
                    {
                        FormError__ADDON_DESC__Dentistry _form = new FormError__ADDON_DESC__Dentistry();
                        DialogResult dialogResult = _form.CustomShowDialog_ret(
                            $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                            ,
                            //$@"╒Имаые╥я╧╣║цца╪т╢╬ер╢╥уХ©те╢Л ADDON_DESC/ADDON_DETAIL Ц╧Д©еЛ CHAD" + Environment.NewLine
                            $@"╒Имаые╥я╧╣║цца╪т╢╬ер╢╥уХ©те╢Л ADDON_DESC Ц╧Д©еЛ CHAD" + Environment.NewLine                              // mai: new ver NOT SHOW "ADDON_DETAIL"
                            + $@"А╤гАц║╥уХ╪т╢╬ер╢ : {registerManager.ChkDentistry_.firstInvalidRow}" + Environment.NewLine
                            + $@"╗с╧г╧А╤г╥уХ╪т╢╬ер╢╥яИ╖ка╢ : {registerManager.ChkDentistry_.totalInvalidRow}" + Environment.NewLine
                            + $@"црбепЮмуб╢╓гра╪т╢╬ер╢ : {registerManager.ChkDentistry_.strInvalidRow}" + Environment.NewLine
                            + $@"Б╩ц╢╢ы╣ягмбХр╖║рццп╨ь╚уХ©я╧╣ра╢Ир╧еХр╖╧уИ"
                            );
                    }
                    else if (fileTypes == Import_Const.FileTypes.HospitalOS)
                    {
                        FormError__ADDON_DESC__Dentistry _form = new FormError__ADDON_DESC__Dentistry();
                        DialogResult dialogResult = _form.CustomShowDialog_ret(
                            $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                            ,
                            $@"╒Имаые╥я╧╣║цца╪т╢╬ер╢╥уХ©те╢Л ADDON_DESC Ц╧╣рцр╖ CHAD" + Environment.NewLine
                            + $@"А╤гАц║╥уХ╪т╢╬ер╢ : {registerManager.ChkDentistry_.firstInvalidRow}" + Environment.NewLine
                            + $@"╗с╧г╧А╤г╥уХ╪т╢╬ер╢╥яИ╖ка╢ : {registerManager.ChkDentistry_.totalInvalidRow}" + Environment.NewLine
                            + $@"црбепЮмуб╢╓гра╪т╢╬ер╢ : {registerManager.ChkDentistry_.strInvalidRow}" + Environment.NewLine
                            + $@"Б╩ц╢╢ы╣ягмбХр╖║рццп╨ь╚уХ©я╧╣ра╢Ир╧еХр╖╧уИ"
                            );
                    }
                }                 // else // if (registerManager.ChkDentistry_.firstInvalidRow == -2)
                                  //------------------------------------------------------------------
                lblxMsg.Text    = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false; // mai: reset
                return;
            }                        //if (!registerManager.DBF_TXT_HospitalOS__CHAD__ADDON_DESC__ADDON_DETAIL__IsValidDentistryData)

            // mai: for "subImportXXX_Phase1()"
            //---------------------------------
            if (!registerManager.Has__ImportAllRow__allOPD)             // OK5
            {
                //==================================================================
                FormErrorShortMsg _form        = new FormErrorShortMsg();
                DialogResult      dialogResult = _form.CustomShowDialog_ret(
                    $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                    ,
                    $@"б║Юет║║рц╧сЮ╒Ир╒Имаые Ю╧вХм╖╗р║ДаХау╒Имаые║рцарця╨╨цт║рц (мИр╖мт╖╗р║Д©еЛ OPD)"
                    );
                //------------------------------------------------------------------
                //lblxMsg.Text = $@"б║Юет║║рц╧сЮ╒Ир╒Имаые Ю╧вХм╖╗р║ДаХау╒Имаые║рцарця╨╨цт║рц (мИр╖мт╖╗р║Д©еЛ OPD)";
                lblxMsg.Text    = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false; // mai: reset
                return;
            }                        // if (!registerManager.HaveDataRecordsToProcess__BasedOnOPD)

            if (!IsImporting)        // OK5
            {
                //==================================================================
                // NOTHING TO DO HERE, UPDATE OF user click-btn to cancel thread ALREADY DO IN "subImportXXX_Phase1()"

                //lblxMsg.Text = $@"б║Юет║║рц╧сЮ╒Ир╒Имаые ╣ра╓сйяХ╖Юцуб╨цИмбАеИг";
                //pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false;           // mai: reset
                return;
            }                                  // if (!IsImporting)

            if (!registerManager.IsValidHCODE) // OK5
            {
                //==================================================================
                FormErrorShortMsg _form        = new FormErrorShortMsg();
                DialogResult      dialogResult = _form.CustomShowDialog_ret(
                    $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!"
                    ,
                    //$@"цкяйй╤р╧╬бр╨реЦ╧А©Иа╒Имаые ДаХ╣ц╖║я╨й╤р╧╬бр╨ре╥уХ╣яИ╖╓ХрДгИЦ╧цп╨╨"
                    $@"цкяйй╤р╧╬бр╨ре╥уХ╧сЮ╒Ир ДаХ╣ц╖║я╨й╤р╧╬бр╨ре╥уХ╣яИ╖╓ХрДгИЦ╧цп╨╨"
                    );
                //------------------------------------------------------------------
                //lblxMsg.Text = $@"б║Юет║║рц╧сЮ╒Ир╒Имаые Ю╧вХм╖╗р║ HCode ДаХ╤ы║╣Им╖";   // mai: from org, just keep for may use.
                lblxMsg.Text    = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false;                                   // mai: reset
                return;
            }                                                          // if (!registerManager.IsValidHCODE)

            if (registerManager.Is__subImportXXX_PhaseXXX__CatchError) // OK5
            {
                //==================================================================
                // NOTHING TO DO HERE, UPDATE OF CATCHING-ERROR of "subImportXXX_PhaseXXX()" ALREADY DO inside its method.

                //lblxMsg.Text = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                //pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false;                                // mai: reset
                return;
            }                                                       // if (registerManager.Is__subImportXXX_PhaseXXX__CatchError)

            if (registerManager.Is__importXXX_PhaseXXX__CatchError) // OK5
            {
                //==================================================================
                // NOTHING TO DO HERE, UPDATE OF CATCHING-ERROR of "importXXX_Phase1()" ALREADY DO inside its method.

                //lblxMsg.Text = $@"║рц╧сЮ╒Ир╒Имаые╪т╢╬ер╢!";
                //pgbImport.Value = 0;
                //------------------------------------------------------------------
                picBxLoading.Visible = false;
                //---------------------------------
                btnxBrowseFolder.Enabled = true;
                //---------------------------------
                btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
                btnxImport.Enabled = true;
                //---------------------------------
                btnxClose.Enabled = true;

                //==================================================================
                IsImporting = false; // mai: reset
                return;
            }                        // if (registerManager.Is__importXXX_PhaseXXX__CatchError)

            //==================================================================
// mai: There's NO any error occurs/user NOT Cancel thread, thus continue "FormImportSummary":

            //==================================================================
            lblxMsg.Text    = $@"╧сЮ╒Ир╒ИмаыеЮцуб╨цИмбАеИгhos";
            pgbImport.Value = 100;
            //------------------------------------------------------------------
            picBxLoading.Visible = false;
            //---------------------------------
            btnxBrowseFolder.Enabled = true;
            //---------------------------------
            btnxImport.Text    = "╧сЮ╒Ир╒Имаые";
            btnxImport.Enabled = true;
            //---------------------------------
            btnxClose.Enabled = true;
            //---------------------------------
            if (registerManager.LstCSVImportLogData.Count > 0)
            {
                btnxExportLog.Enabled = true;
            }

            //==================================================================
            IsImporting = false; // mai: reset

            //------------------------------------------------------------------
            FormImportSummary formImportSummary = null;

            if (fileTypes == Import_Const.FileTypes.DBF)
            {
                formImportSummary = new FormImportSummary(SourceTypes.DBF);
            }
            else if (fileTypes == Import_Const.FileTypes.TXT)
            {
                formImportSummary = new FormImportSummary(SourceTypes.TXT);
            }

            formImportSummary.RegisterManager_ = registerManager; // mai: share with "formImportSummary".
            formImportSummary.ShowDialog(this);

            //==================================================================
            //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
            // mai: Bypass this ConfirmClosingDialog when finished all jobs:
            isByPassConfirmClosingDialog = true;
            this.Close();
            return;

            //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        } // importFinished