年度变更建库软件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.

42 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 CmdCZCPatchworkCommand : BaseMenuCommand
{
private IHookHelper hookHelper = null;
FrmCZCPatchwork 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 FrmCZCPatchwork();
}
view.ShowPanel();
view.CloseViewHandler += (s, e) =>
{
view = null;
};
}
public override bool Enabled
{
get
{
return KGIS.Framework.Maps.MapsManager.Instance.MapService.GetProjectInfo() == null ? false : true;
}
}
}
}