using ESRI.ArcGIS.Controls; using KGIS.Framework.Maps; using Kingo.Plugin.MapView.Views.AppMenuView; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Kingo.Plugin.MapView.Commands { /// /// 工程信息 /// public class CmdProjectInformation : BaseMapMenuCommand { public UCProjectInformation uCProjectInformation = null; public override void OnClick() { if (uCProjectInformation == null) { uCProjectInformation = new UCProjectInformation(); uCProjectInformation.Closed += M_View_Closed; } uCProjectInformation.ShowInMainWindow(true); } private void M_View_Closed(object sender, EventArgs e) { uCProjectInformation = null; } public override void OnCreate(object Hook) { if (m_hookHelper == null) { m_hookHelper = new HookHelper { Hook = Hook }; } } } }