Example #1
0
    public override bool isValid(string currentPath, List <string> incidences)
    {
        bool valid = true;

        valid &= actionsListDataControl.isValid(currentPath, incidences);
        //  valid &= descriptionsController.isValid( currentPath, incidences );

        return(valid);
    }
    public override bool isValid(string currentPath, List <string> incidences)
    {
        bool valid = true;

        // Iterate through the resources
        for (int i = 0; i < resourcesDataControlList.Count; i++)
        {
            string resourcesPath = currentPath + " >> " + TC.getElement(Controller.RESOURCES) + " #" + (i + 1);
            valid &= resourcesDataControlList[i].isValid(resourcesPath, incidences);
        }

        // Spread the call to the actions
        valid &= actionsListDataControl.isValid(currentPath, incidences);
        //1.4
        valid &= descriptionController.isValid(currentPath, incidences);

        return(valid);
    }