public virtual void OnMouseDown(Point coordinates, Graphics drawer) { _from = coordinates; _mouseDown = true; _polygonContainer.Selected.Save(); _polygonContainer.Draw(drawer); }
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); }
public void OnMouseDown(Point coordinates, Graphics drawer) { _from = coordinates; _mouseDown = true; _polygonContainer.Draw(drawer); }
public void OnMouseUp(Point coordinates, Graphics drawer) { _tool.OnUse(_polygonContainer, coordinates); _polygonContainer.Draw(drawer); }