Exemplo n.º 1
0
 void MapControl_Disposed(object sender, EventArgs e)
 {
     _vectorMapRuntime.Dispose();
     _renderArg.EndRender();
     if (_infoPrinters != null)
     {
         _infoPrinters.Clear();
     }
 }
Exemplo n.º 2
0
 public override void Dispose()
 {
     _isDisposed = true;
     if (_mapRuntime != null)
     {
         DisposeMap();
         _mapRuntime.Dispose();
         //_mapRuntime = null;
     }
     if (_buffer != null)
     {
         _buffer.Dispose();
         _buffer = null;
     }
     _onCanvasSizeChanged      = null;
     _someDataIsArrivedHandler = null;
     _strongRefreshHandler     = null;
     _renderArgs = null;
     _canvas     = null;
     base.Dispose();
 }