예제 #1
0
        public override void OnMouseDown(MouseEventArgs e)
        {
            base.OnMouseDown(e);
            CC.ID = CC.GetNewID();
            DrawText w = new DrawText(e.X, e.Y, CC.textInfo.text, CC.textInfo.color, CC.ID);

            AddNewObject(w);
            isNewObjectAdded = true;
        }
예제 #2
0
        public override void OnMouseDown(MouseEventArgs e)
        {
            base.OnMouseDown(e);
            CC.isToolPoint = false;
            CC.ID          = CC.GetNewID();
            DrawRectangle w = new DrawRectangle(e.X, e.Y, 15, 15, Color.Red, CC.ID);

            AddNewObject(w);
            isNewObjectAdded = true;
        }
예제 #3
0
        public override void OnMouseDown(MouseEventArgs e)
        {
            base.OnMouseDown(e);
            CC.isToolPoint = false;
            CC.ID          = CC.GetNewID();
            Point     p = new Point(e.X, e.Y);
            DrawCurve w = new DrawCurve(p, Color.Red, 2, CC.ID);

            AddNewObject(w);
            myLastPoint      = p;
            isNewObjectAdded = true;
        }