예제 #1
0
        public override void Delete()
        {
            base.Delete();

            if (Links != null)
            {
                Links.ForEach(l =>
                {
                    if (!l.Deleted)
                    {
                        l.Delete();
                    }
                });
            }

            if (ParentTrap != null && !ParentTrap.Deleted)
            {
                ParentTrap.Delete();
            }
        }
예제 #2
0
        public override void Delete()
        {
            base.Delete();

            if (Links != null)
            {
                for (var index = 0; index < Links.Count; index++)
                {
                    var l = Links[index];

                    if (!l.Deleted)
                    {
                        l.Delete();
                    }
                }
            }

            if (ParentTrap != null && !ParentTrap.Deleted)
            {
                ParentTrap.Delete();
            }
        }