示例#1
0
 /// <summary>
 /// Left mouse button is pressed
 /// </summary>
 /// <param name="control"></param>
 /// <param name="e"></param>
 public override void OnMouseDown(MapControl control, MouseEventArgs e, int zoom)
 {
     // Create new polygon, add it to the list
     // and keep reference to it
     obj = new DrawPolyline(e.X, e.Y, zoom, TOOL_TYPE.defence);
     AddNewObject(control, obj);
     lastX = e.X;
     lastY = e.Y;
 }
示例#2
0
        /// <summary>
        /// Clone this instance
        /// </summary>
        public override DrawObject Clone()
        {
            DrawPolyline drawLine = new DrawPolyline();

            drawLine.property    = this.property.Clone();
            drawLine.PointsArray = new List <PointLatLng>(this.PointsArray);

            FillDrawObjectFields(drawLine);
            return(drawLine);
        }