using ESRI.ArcGIS.ADF.BaseClasses; using ESRI.ArcGIS.Controls; using ESRI.ArcGIS.Geometry; namespace Kingo.Plugin.NYYP.Tool { /// /// 修改日期:2018-09-11 /// 修改人员:郑英杰 /// 目的:删除绘制图形无法使用 /// public class ControlsEditingSketchDeleteCommandChinese : BaseCommand //public class ControlsEditingSketchDeleteCommandChinese : BaseCommand//ControlsEditingSketchDeleteCommandClass { private ControlsEditingSketchDeleteCommandClass pSketchDelete; private IGeometry geometry; public IGeometry Geometry { get { return geometry; } set { geometry = value; } } //protected string m_caption; public ControlsEditingSketchDeleteCommandChinese() { base.m_caption = "删除草图"; pSketchDelete = new ControlsEditingSketchDeleteCommandClass(); } public override int Bitmap { get { return base.Bitmap; } } public override string Caption { get { return m_caption; } } public override string Category { get { return base.Category; } } public override bool Checked { get { return base.Checked; } } public override bool Enabled { get { if (geometry != null && !geometry.IsEmpty) { return true; } else { return false; } } } public override int HelpContextID { get { return base.HelpContextID; } } public override string HelpFile { get { return base.HelpFile; } } public override string Message { get { return base.Message; } } public override string Name { get { return base.Name; } } public override string Tooltip { get { return base.Tooltip; } } public override void OnCreate(object hook) { pSketchDelete.OnCreate(hook); } public override void OnClick() { pSketchDelete.OnClick(); } } }