protected override void OnRelatedEntityDelete( Entity entity ) { base.OnRelatedEntityDelete( entity ); if( way == entity ) way = null; if( activateRegion == entity ) activateRegion = null; }