Example #1
0
        //Mouse cursor move on PaintBox
        private void Canvas_MouseMove(object sender, MouseEventArgs e)
        {
            if (!btn_down)
            {
                return;
            }

            switch (mode)
            {
            case eMode.shapeLine:
                CurrentEditor.TempLine(line_beg, new Point(e.X, e.Y));
                break;

            case eMode.shapeCircle:
                CurrentEditor.TempEllipse(line_beg, new Point(e.X, e.Y));
                break;

            case eMode.shapeRect:
                CurrentEditor.TempRect(line_beg, new Point(e.X, e.Y));
                break;
            }
        }