示例#1
0
        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());
        }
示例#2
0
 public void MouseLeftButtonDown(Point point)
 {
     ToolPicker.GetTool().MouseLeftButtonDown(point, graphData);
 }
示例#3
0
 public void MouseRightButtonUp(Point point)
 {
     ToolPicker.GetTool().MouseRightButtonUp(point, graphData);
 }
示例#4
0
 public void MouseMove(Point point)
 {
     ToolPicker.GetTool().MouseMove(point, graphData);
 }