Exemplo n.º 1
0
 public void VehicleMoveHandler(LiveObject lo, Rectangle prev)
 {
     //LibSys.StatusBar.Trace("IP: LayerVehicles:VehicleMoveHandler() 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);
 }
Exemplo n.º 2
0
 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);
 }