Ejemplo n.º 1
0
 public void Dispose()
 {
     _host.OnCanvasSizeChanged -= _resizeHandler;
     _grids       = null;
     _conflictDef = null;
     _host        = null;
 }
Ejemplo n.º 2
0
 public PixelConflictor(ConflictDefinition conflictDef, IMapRuntimeHost host)
 {
     _conflictDef               = conflictDef;
     _host                      = host;
     _resizeHandler             = new EventHandler(_control_SizeChanged);
     _host.OnCanvasSizeChanged += _resizeHandler;
     BuildGrids();
 }
Ejemplo n.º 3
0
 public MapRuntime(IMapRuntimeHost environment)
 {
     _environment         = environment;
     _projectionTransform = _environment.ProjectionTransform;
     _labelRender         = new LabelRender();
     _id = maxId;
     maxId++;
     _handinessLayerContainer = new LightLayerContainer(this as IMapRuntime);
     _locatingFocusLayer      = new LocationFocusLayer();
     _locatingFocusLayer.Init(this as IMapRuntime);
     _locationIconLayer = new LocationIconLayer();
     _locationIconLayer.Init(this as IMapRuntime);
 }
Ejemplo n.º 4
0
 public void Dispose()
 {
     if (_graphics != null)
     {
         _graphics.Dispose();
         _graphics = null;
     }
     if (_bitmap != null)
     {
         _bitmap.Dispose();
         _bitmap = null;
     }
     _host.OnCanvasSizeChanged -= _resizeHandler;
     _resizeHandler             = null;
     //_control.SizeChanged -= _resizeHandler;
     _conflictDef = null;
     //_control = null;
     _host = null;
 }