public GraphRedactor(int width, int height, DrawingCanvas drawingCanvas) { graphData = new GraphData(width, height, drawingCanvas); Uploader = new Uploader(); ToolPicker = new ToolPicker(); BrushPicker.AddBrush(new LinesBrush()); BrushPicker.AddBrush(new SolidBrush()); BrushPicker.AddBrush(new CrossBrush()); BrushPicker.AddBrush(new SecondLinesBrush()); PenPicker.AddPen(new DashPen()); PenPicker.AddPen(new SolidPen()); PenPicker.AddPen(new DashDotDotPen()); }
public void MouseLeftButtonDown(Point point) { ToolPicker.GetTool().MouseLeftButtonDown(point, graphData); }
public void MouseRightButtonUp(Point point) { ToolPicker.GetTool().MouseRightButtonUp(point, graphData); }
public void MouseMove(Point point) { ToolPicker.GetTool().MouseMove(point, graphData); }