示例#1
0
        public override void OnAfterDelete()
        {
            try{
                ForSaleSign.ClearHouse();

                Doors.Clear();

                base.OnAfterDelete();
            }catch { Errors.Report(String.Format("TownHouse-> OnAfterDelete()-> {0}", Owner)); }
        }
示例#2
0
        public override void OnDelete()
        {
            if (c_Hanger != null)
            {
                c_Hanger.Delete();
            }

            foreach (Item item in Sign.GetItemsInRange(0).OfType <Item>().Where(item => item != null && item != Sign))
            {
                item.Visible = true;
            }

            ForSaleSign.ClearHouse();
            Doors.Clear();

            s_TownHouses.Remove(this);

            base.OnDelete();
        }
示例#3
0
        public override void OnDelete()
        {
            if (_Hanger != null)
            {
                _Hanger.Delete();
            }

            foreach (var item in Sign.GetItemsInRange(0).Where(item => item != Sign))
            {
                item.Visible = true;
            }

            ForSaleSign.ClearHouse();
            Doors.Clear();

            AllTownHouses.Remove(this);

            base.OnDelete();
        }