Exemplo n.º 1
0
        public override int Init(object objParam)
        {
            if (GetDescription() == "VerifyWGetString")
            {
                NameTableVer = ENAMETABLE_VER.VERIFY_WITH_GETSTR;
            }

            else if (GetDescription() == "VerifyWGetChar")
            {
                NameTableVer = ENAMETABLE_VER.VERIFY_WITH_GETCHAR;
            }

            else if (GetDescription() == "VerifyWAddString")
            {
                NameTableVer = ENAMETABLE_VER.VERIFY_WITH_ADDSTR;
            }

            else if (GetDescription() == "VerifyWAddChar")
            {
                NameTableVer = ENAMETABLE_VER.VERIFY_WITH_ADDCHAR;
            }
            else
                throw (new Exception());

            int ival = base.Init(objParam);

            ReloadSource();

            if (TEST_PASS == ival)
            {
                while (DataReader.Read() == true) ;
            }

            return ival;
        }
Exemplo n.º 2
0
        public override int Init(object objParam)
        {
            if (GetDescription() == "VerifyWGetString")
            {
                NameTableVer = ENAMETABLE_VER.VERIFY_WITH_GETSTR;
            }

            else if (GetDescription() == "VerifyWGetChar")
            {
                NameTableVer = ENAMETABLE_VER.VERIFY_WITH_GETCHAR;
            }

            else if (GetDescription() == "VerifyWAddString")
            {
                NameTableVer = ENAMETABLE_VER.VERIFY_WITH_ADDSTR;
            }

            else if (GetDescription() == "VerifyWAddChar")
            {
                NameTableVer = ENAMETABLE_VER.VERIFY_WITH_ADDCHAR;
            }
            else
            {
                throw (new Exception());
            }

            int ival = base.Init(objParam);

            ReloadSource();

            if (TEST_PASS == ival)
            {
                while (DataReader.Read() == true)
                {
                    ;
                }
            }

            return(ival);
        }