示例#1
0
        public BrushTool(ToolArgs args, BrushToolType type)
            : base(args)
        {
            toolType = type;
            drawing  = false;

            args.pictureBox.Cursor     = Cursors.Cross;
            args.pictureBox.MouseDown += new MouseEventHandler(OnMouseDown);
            args.pictureBox.MouseMove += new MouseEventHandler(OnMouseMove);
            args.pictureBox.MouseUp   += new MouseEventHandler(OnMouseUp);
        }
示例#2
0
        public BrushTool(ToolArgs args, BrushToolType type)
            : base(args)
        {
            toolType = type;
              drawing = false;

              args.pictureBox.Cursor = Cursors.Cross;
              args.pictureBox.MouseDown += new MouseEventHandler(OnMouseDown);
              args.pictureBox.MouseMove += new MouseEventHandler(OnMouseMove);
              args.pictureBox.MouseUp += new MouseEventHandler(OnMouseUp);
        }