public ShowEagleEyeCmd(AxGlobeControlEx globeCtrl) { // // TODO: Define values for the public properties // base.m_category = ""; //localizable text base.m_caption = "EagleEye"; //localizable text base.m_message = "在二维地图上框选区域,三维地球上会自动定位到所框选区域的位置."; //localizable text base.m_toolTip = "鹰眼"; //localizable text base.m_name = "ShowEagleEye"; //unique id, non-localizable (e.g. "MyCategory_MyCommand") try { // // TODO: change bitmap name if necessary // //string bitmapResourceName = GetType().Name + ".bmp"; //base.m_bitmap = new Bitmap(GetType(), bitmapResourceName); base.m_bitmap = global::GlobleSituation.Properties.Resources.Show_16x16; } catch (Exception ex) { System.Diagnostics.Trace.WriteLine(ex.Message, "Invalid Bitmap"); } m_globeCtrl = globeCtrl; }
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); // 态势数据 }