예제 #1
0
 public virtual void OnMouseDown(Point coordinates, Graphics drawer)
 {
     _from      = coordinates;
     _mouseDown = true;
     _polygonContainer.Selected.Save();
     _polygonContainer.Draw(drawer);
 }
예제 #2
0
        public void OnMouseDown(Point coordinates, Graphics drawer)
        {
            _from      = coordinates;
            _mouseDown = true;
            _edges     = new List <Edge>();
            var points = _polygonContainer.Selected.Points;

            for (var i = 1; i < points.Count; i++)
            {
                _edges.Add(new Edge(points[i - 1], points[i]));
            }
            _edges.Add(new Edge(points[points.Count - 1], points[0]));
            _polygonContainer.Draw(drawer);
        }
예제 #3
0
 public void OnMouseDown(Point coordinates, Graphics drawer)
 {
     _from      = coordinates;
     _mouseDown = true;
     _polygonContainer.Draw(drawer);
 }
예제 #4
0
 public void OnMouseUp(Point coordinates, Graphics drawer)
 {
     _tool.OnUse(_polygonContainer, coordinates);
     _polygonContainer.Draw(drawer);
 }