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

            if (progress.getType() == Completable.Progress.ProgressType.SPECIFIC)
            {
                valid &= milestoneDataControls.All(m => m.getProgress() >= 0 && m.getProgress() <= 1);
            }

            return(valid && milestoneDataControls.All(m => m.isValid(currentPath, incidences)));
        }
Example #2
0
        public static XmlElement buildProgressDOM(Completable.Progress progress)
        {
            XmlElement progressNode = Writer.GetDoc().CreateElement("progress");

            progressNode.SetAttribute("type", progress.getType().ToString());

            foreach (Completable.Milestone milestone in progress.getMilestones())
            {
                progressNode.AppendChild(CompletableDOMWriter.buildMilestoneDOM(milestone));
            }

            return(progressNode);
        }