示例#1
0
 protected void check(ConditionsController conditions, string desc)
 {
     for (int i = 0; i < conditions.getBlocksCount(); i++)
     {
         for (int j = 0; j < conditions.getConditionCount(i); j++)
         {
             Dictionary <string, string> properties = conditions.getCondition(i, j);
             if (properties.ContainsKey(ConditionsController.CONDITION_ID))
             {
                 check(properties[ConditionsController.CONDITION_ID], desc + " (ID)");
             }
             if (properties.ContainsKey(ConditionsController.CONDITION_STATE))
             {
                 // CHECK!!!
                 check(properties[ConditionsController.CONDITION_STATE], desc + " ()");
             }
             if (properties.ContainsKey(ConditionsController.CONDITION_VALUE))
             {
                 // CHECK!!!
                 check(properties[ConditionsController.CONDITION_VALUE], desc + " ()");
             }
         }
     }
 }