年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
1.1 KiB

using ESRI.ArcGIS.Controls;
using KGIS.Framework.Commands;
using Kingo.Plugin.AttributeMaintain.View;
namespace Kingo.Plugin.AttributeMaintain.Commands
{
/// <summary>
/// 变更数据属性维护
/// </summary>
public class CmdCZC_TRCommand : BaseMenuCommand
{
private IHookHelper hookHelper = null;
FrmCZC_TR view = null;
public override void OnCreate(object hook)
{
if (hookHelper == null)
{
hookHelper = new HookHelperClass();
}
hookHelper.Hook = hook;
}
public override void OnClick()
{
if (view == null)
{
view = new FrmCZC_TR();
}
view.ShowPanel();
view.CloseViewHandler += (s, e) =>
{
view.ClosePanel();
view = null;
};
}
public override bool Enabled
{
get
{
return KGIS.Framework.Maps.MapsManager.Instance.MapService.GetProjectInfo() == null ? false : true;
}
}
}
}