错误 1 未能找到类型或命名空间名称“AfterDrawGeometry”(是否缺少 using 指令或程序集引用?) C:\Users\1\Desktop\MapApplication\MapApplication\DrawPolygon.cs 20 22 MapApplication
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.Geometry;
namespace MapApplication
{
public class DrawPolygon
{
private IGeometry _polygon = null;
private INewPolygonFeedback _polyFeedback = null;
private IPoint _startPoint = null;
private IPoint _endPoint = null;
private bool _drawStart = false;
public event AfterDrawGeometry eventAfterDrawGeometry;
protected AxMapControl myMapControl = null;
protected ESRI.ArcGIS.Controls.IHookHelper myHook;
public IGeometry Polygon
{
get { return _polygon; }
}
public override void OnCreate(object hook)
{
myHook.Hook = hook;
if (myHook == null)
myHook = new HookHelperClass();
}
}
}