public MapGlobeContainer() { InitializeComponent(); // 航迹管理 TrackLineManager trackMgr = new TrackLineManager(); globeCtrl = new AxGlobeControlEx(trackMgr) { Dock = DockStyle.Fill }; this.dockPanel1.Controls.Add(globeCtrl); //mapCtrl = new AxMapControlEx() { Dock = DockStyle.Fill }; //this.dockPanel2.Controls.Add(mapCtrl); gmapCtrl = new GMapControlEx(trackMgr, globeCtrl.globeBusiness) { Dock = DockStyle.Fill }; this.dockPanel2.Controls.Add(gmapCtrl); dockPanel1.Options.ShowCloseButton = false; dockPanel2.Options.ShowCloseButton = false; LoadSet(); // 加载配置 // 预警 warnMgr = new WarnManager(globeCtrl.mapLogic, gmapCtrl.mapLogic); EventPublisher.JumpToGlobeViewEvent += EventPublisher_JumpToGlobeViewEvent; EventPublisher.TSDataEvent += new EventHandler <TSDataEventArgs>(EventPublisher_TSDataEvent); // 态势数据 }
/// <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(); }