void IDisposable.Dispose() { if (_mosaicProjectionFileProvider != null) { _mosaicProjectionFileProvider.DataIdentifyChanged -= new Action <DataIdentify, IRasterDataProvider>(_mosaicProjectionFileProvider_DataIdentifyChanged); _mosaicProjectionFileProvider.Dispose(); _mosaicProjectionFileProvider.Clear(); } if (_curFileHost != null) { _curFileHost.Dispose(); _curFileHost = null; } if (_aoiHost != null) { _aoiHost.Dispose(); _aoiHost = null; } if (_simpleMapControl != null) { (_simpleMapControl as UCSimpleMapControl).AOIIsChanged -= new EventHandler(map_AOIIsChanged); (_simpleMapControl as UCSimpleMapControl).Dispose(); _simpleMapControl = null; } ucPrjEnvelopes1.OnEnvelopeChanged -= new EventHandler(ucPrjEnvelopes1_OnEnvelopeChanged); tvInputFiles.NodeMouseDoubleClick -= new TreeNodeMouseClickEventHandler(treeView1_NodeMouseDoubleClick); _progress = null; }
private void AddAoiToVectorHost(ISimpleVectorObjectHost host, PrjEnvelopeItem prjItem) { PrjEnvelope prjEnv = prjItem.PrjEnvelope; Core.DrawEngine.CoordEnvelope env = new Core.DrawEngine.CoordEnvelope(prjEnv.MinX, prjEnv.MaxX, prjEnv.MinY, prjEnv.MaxY); host.Add(new SimpleVectorObject(prjItem.Name, env)); }
void map_Load(object sender, EventArgs e) { if (_simpleMapControl == null) { return; } _aoiHost = _simpleMapControl.CreateObjectHost("AOI"); }
void map_Load(object sender, EventArgs e) { if (_simpleMapControl == null) { return; } _aoiHost = _simpleMapControl.CreateObjectHost("AOI"); _curFileHost = _simpleMapControl.CreateObjectHost("CurFile"); _aoiObj = new SimpleVectorObject("AOI", null); _aoiHost.Add(_aoiObj); }
void map_Load(object sender, EventArgs e) { if (_simpleMapControl == null) { return; } _blockHost = _simpleMapControl.CreateObjectHost("Block"); _simpleMapControl.ToWorldViewport(); LoadFilter(); InitDataMonitor(); }
void map_Load(object sender, EventArgs e) { if (_simpleMapControl == null) { return; } _blockHost = _simpleMapControl.CreateObjectHost("Block"); _blockHost.LabelSetting.ForeColor = _fontColor; _blockHost.LabelSetting.MasLabelRuler = CodeCell.AgileMap.Core.masLabelPosition.Center; ((CodeCell.AgileMap.Core.FillSymbol)(_blockHost.Symbol)).OutlineSymbol.Color = Color.Red; LoadFilter(); InitDataMonitor(false); }
void UCSimpleMapControl_Disposed(object sender, EventArgs e) { if (_objHosts != null && _objHosts.Count != 0) { foreach (string key in _objHosts.Keys) { ISimpleVectorObjectHost host = _objHosts[key]; if (host != null) { host.Dispose(); } } _objHosts.Clear(); } if (_aoiContainer != null) { (_aoiContainer as AOIContainerLayer).Dispose(); _aoiContainer = null; } if (_vectorHostLayer != null) { (_vectorHostLayer as VectorHostLayer).Dispose(); _vectorHostLayer = null; } if (_geoGridLayer != null) { _geoGridLayer.Dispose(); _geoGridLayer = null; } if (canvasHost1 != null) { canvasHost1.Canvas.Dispose(); canvasHost1.Dispose(); //canvasHost1 = null; } }
private void ClearAoiVectorHost(ISimpleVectorObjectHost host) { host.Remove(new Func <ISimpleVectorObject, bool>((i) => { return(true); })); _simpleMapControl.Render(); }
internal void SetHost(ISimpleVectorObjectHost host) { _host = host; }
private void AddAoiToVectorHost(ISimpleVectorObjectHost host, string name, CoordEnvelope envelope) { Core.DrawEngine.CoordEnvelope env = new Core.DrawEngine.CoordEnvelope(envelope.MinX, envelope.MaxX, envelope.MinY, envelope.MaxY); host.Add(new SimpleVectorObject(name, env)); }
private void ClearAoi(ISimpleVectorObjectHost host) { host.Remove(new Func <ISimpleVectorObject, bool>((i) => { return(true); })); }
private void AddAoi(ISimpleVectorObjectHost host, string name, Core.DrawEngine.CoordEnvelope env) { host.Add(new SimpleVectorObject(name, env)); }