public override void OnAfterDelete() { try{ ForSaleSign.ClearHouse(); Doors.Clear(); base.OnAfterDelete(); }catch { Errors.Report(String.Format("TownHouse-> OnAfterDelete()-> {0}", Owner)); } }
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(); }
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(); }