public void EarthquakeMoveHandler(LiveObject lo, Rectangle prev) { //LibSys.StatusBar.Trace("IP: LayerEarthquakes:EarthquakeRemoveHandler() eq=" + lo); lo.init(true); // provoke PutOnMap in Paint() PictureManager.Invalidate(prev); }
public void CustomMapMoveHandler(LiveObject lo, Rectangle prev) { //LibSys.StatusBar.Trace("IP: LayerCustomMaps:CustomMapMoveHandler() veh=" + lo); lo.init(true); // provoke PutOnMap in Paint() prev.Inflate(1, 1); // it is likely that move is not too far, so do one bigger invalidate - save drawing time: PictureManager.Invalidate(Rectangle.Union(prev, lo.BoundingRect)); //PictureManager.Invalidate(lo.BoundingRect); //PictureManager.Invalidate(prev); }