Exemplo n.º 1
0
        bool RunChecks()
        {
            try
            {
                List <string> chks = checks[verb];

                foreach (string fn in chks)
                {
                    VerbCheckDlgt chk = checkTable[fn];
                    if (!chk())
                    {
                        return(false);
                    }
                }
            }
            catch (Exception e)
            {
                return(true); //verb had no checks
            }
            return(true);
        }
Exemplo n.º 2
0
 bool RunChecks()
 {
     try
     {
         foreach (Tuple <int, string> t in checkList)
         {
             if (t.Item1 == verb)
             {
                 VerbCheckDlgt chk = checkTable[t.Item2];
                 if (!chk())
                 {
                     return(false);
                 }
             }
         }
     }
     catch (Exception e)
     {
         return(true); //verb had no checks
     }
     return(true);
 }
Exemplo n.º 3
0
        bool RunChecks()
        {
            foreach (Tuple <int, string> t in checkList)
            {
                if (t.Item1 == verb)
                {
                    try {
                        VerbCheckDlgt chk = checkTable[t.Item2];
                        if (!chk())
                        {
                            return(false);
                        }
                    }
                    catch (Exception e)
                    {
                        throw new Exception("Unable to run check " + t.Item2 + " for verb " + t.Item1);
                    }
                }
            }


            return(true);
        }