Ejemplo n.º 1
0
        protected override ValidationResultCollection OnValidate()
        {
            var results = new ValidationResultCollection();

            foreach (var section in Sections)
            {
                results.AddResult(section.Validate());
            }

            return(results);
        }
Ejemplo n.º 2
0
        public ValidationResultCollection Validate()
        {
            var results = new ValidationResultCollection();

            foreach (var cell in Cells)
            {
                var validatableCell = cell as IEntryCellViewModel;
                if (validatableCell != null)
                {
                    results.AddResult(validatableCell.Validate());
                }
            }

            return(results);
        }