/// <summary> /// 释放资源 /// </summary> public void Dispose() { ReleaseCommond(); CommondExecutedEvent = null; mapControl = null; layer = null; polygonElement = null; mapLogic = null; pointList = null; isMouseDown = false; isFinish = false; isControl = false; }
/// <summary> /// 默认构造函数 /// </summary> public frmAreaManager(WarnManager _wanrMgr) { InitializeComponent(); this.LookAndFeel.SkinName = AppConfigFacade.DefaultTheme; this.Icon = global::GlobleSituation.Properties.Resources.App; this.MouseWheel += FrmAreaManager_MouseWheel; wanrMgr = _wanrMgr; mapLogic = _wanrMgr.mapMapLogic; LoadAreaFromXml(listFile); InitDataTable(); }
private double visibleZoom = 5; // 波束达到多少层级是显示 public GMapControlBusiness(IMapLogic _mapLogic, TrackLineManager _trackMgr, ArcGlobeBusiness _globeBusiness) { mapLogic = _mapLogic; globeBusiness = _globeBusiness; trackMgr = _trackMgr; var map = mapLogic.GetIMFMap(); if (map != null) { map.MapZoomChangedEvent += new System.EventHandler <MapZoomChangedEventArgs>(map_MapZoomChangedEvent); } planeMgr = new PlaneManager(); EventPublisher.MapDealBeamDataEvent += new System.EventHandler <BeamData>(EventPublisher_MapDealBeamDataEvent); }
/// <summary> /// 初始化地图框架 /// </summary> private void InitMapFrame() { InitMapFrame mapFrame = new InitMapFrame(MapEngineType.GMap, null); mapLogic = mapFrame.GetMapLogic(); map = mapLogic.GetIMFMap(); map.ElementClickEvent += new System.EventHandler <Core.Model.MFElementClickEventArgs>(map_ElementClickEvent); map.MouseMoveEvent += new EventHandler <MFMouseEventArgs>(map_MouseMoveEvent); Control mapControl = (Control)mapLogic.GetMapControl(); mapControl.Dock = DockStyle.Fill; this.panel1.Controls.Add(mapControl); mapLogic.GetToolBox().CommondExecutedEvent += new EventHandler <MessageEventArgs>(Form1_CommondExecutedEvent); System.Diagnostics.Debug.WriteLine("初始化程序线程ID" + Thread.CurrentThread.ManagedThreadId); }
public GMapControlBusiness mapBusiness = null; // 业务类 public GMapControlEx(TrackLineManager trackMgr, ArcGlobeBusiness _globeBusiness) { InitializeComponent(); InitMapFrame mapFrame = new InitMapFrame(MapEngineType.GMap, null); mapLogic = mapFrame.GetMapLogic(); toolBox = mapLogic.GetToolBox(); map = mapLogic.GetIMFMap(); map.ElementClickEvent += Map_ElementClickEvent; map.MouseMoveEvent += new EventHandler <MFMouseEventArgs>(map_MouseMoveEvent); Control mapControl = (Control)mapLogic.GetMapControl(); mapControl.Dock = DockStyle.Fill; this.mapPanel.Controls.Add(mapControl); mapBusiness = new GMapControlBusiness(mapLogic, trackMgr, _globeBusiness); }
/// <summary> /// 释放资源 /// </summary> public void Dispose() { mapControl = null; mapLogic = null; if (measureTool != null) { measureTool.Dispose(); } downPoint = null; listMapPoints = null; toltalLength = 0; segmentLength = 0; measureArea = 0; measureLine = null; measurePolygon = null; isFinish = false; isControl = false; measureType = string.Empty; CommondExecutedEvent = null; }
/// <summary> /// 构造函数 /// </summary> /// <param name="mapObject">地图对象</param> /// <param name="_mapLogic">逻辑对象</param> public ToolBox(object mapObject, IMapLogic _mapLogic) { mapControl = mapObject as AxGlobeControl;; mapLogic = _mapLogic; }
/// <summary> /// 构造函数 /// </summary> /// <param name="control"></param> /// <param name="_mapLogic">地图逻辑接口</param> public SelectElement(GMapControl control, IMapLogic _mapLogic) { mapLogic = _mapLogic; gmapControl = control; elementList = new List <IMFElement>(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="_mapControl"></param> /// <param name="_mapLogic">图层管理</param> public SelectElement(AxHOSOFTMapControl _mapControl, IMapLogic _mapLogic) { this.mapLogic = _mapLogic; this.mapControl = _mapControl; selectElements = new List <IMFElement>(); }
public SkillLogic(IRepository <Skill> skill, IMapLogic <Skill, SkillViewModel> mapperSkill) { _skill = skill; _mapperSkill = mapperSkill; }
public AccountController(IAuthenticationLogic authentication, IMapLogic <Employee, EmployeeDdd> employeeDtoMap, IAdminLogic admLogic) { _authentication = authentication; _admLogic = admLogic; }
/// <summary> /// 构造函数 /// </summary> /// <param name="engineType">引擎类型</param> /// <param name="mapObject">地图控件对象,默认为空。如果为空,则用框架的地图控件;不为空,则使用外部地图控件</param> public InitMapFrame(MapEngineType engineType, object mapObject = null) { mapLogic = new MapLogic(engineType, mapObject); }
/// <summary> /// 构造函数 /// </summary> /// <param name="mapObject">地图对象</param> /// <param name="_mapLogic">地图逻辑类</param> public ToolBox(object mapObject, IMapLogic _mapLogic) { mapLogic = _mapLogic; gmapControl = mapObject as GMapControl; }