/// <summary> /// Clone this instance /// </summary> public override DrawObject Clone() { DrawPolygon drawPolygon = new DrawPolygon(); drawPolygon.property = this.property.Clone(); drawPolygon.PointsArray = new List <PointLatLng>(PointsArray); FillDrawObjectFields(drawPolygon); return(drawPolygon); }
public override void OnMouseDown(MapControl control, MouseEventArgs e, int zoom) { var obj = new DrawPolygon(e.X, e.Y, zoom, TOOL_TYPE.polygon); AddNewObject(control, obj); }