コード例 #1
0
ファイル: Railway.cs プロジェクト: michaeloed/BinkyRailways
        /// <summary>
        /// Validate the integrity of this entity.
        /// </summary>
        public override void Validate(IEntity validationRoot, ValidationResults results)
        {
            base.Validate(validationRoot, results);
            commandStationRefs.Validate(validationRoot, results);
            locRefs.Validate(validationRoot, results);
            moduleRefs.Validate(validationRoot, results);
            moduleConnections.Validate(validationRoot, results);
            locGroups.Validate(validationRoot, results);

            // Check for duplicate addresses
            var addressEntities = this.GetAddressEntities().ToList();

            addressEntities.WarnForDuplicateAddresses(results);
        }
コード例 #2
0
ファイル: LocGroup.cs プロジェクト: michaeloed/BinkyRailways
 /// <summary>
 /// Validate the integrity of this entity.
 /// </summary>
 public override void Validate(IEntity validationRoot, ValidationResults results)
 {
     base.Validate(validationRoot, results);
     locs.Validate(validationRoot, results);
 }