Ejemplo n.º 1
0
        //Mouse button down on PaintBox
        private void Canvas_MouseDown(object sender, MouseEventArgs e)
        {
            btn_down = true;

            switch (mode)
            {
            case eMode.shapeCross:
                CurrentEditor.AddCross(e.X, e.Y);
                break;

            case eMode.shapeLine:
                CurrentEditor.PrepareToTempDraw();
                line_beg = new Point(e.X, e.Y);
                break;

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

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