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.
72 lines
2.2 KiB
72 lines
2.2 KiB
using ESRI.ArcGIS.ADF.BaseClasses; |
|
using ESRI.ArcGIS.Controls; |
|
using ESRI.ArcGIS.Geometry; |
|
|
|
namespace Kingo.Plugin.NYYP.Tool |
|
{ |
|
/// <summary> |
|
/// 修改日期:2018-09-11 |
|
/// 修改人员:郑英杰 |
|
/// 目的:删除绘制图形无法使用 |
|
/// </summary> |
|
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(); |
|
} |
|
} |
|
}
|
|
|