Exemplo n.º 1
0
        protected override void OnStartResize(Point pPoint)
        {
            base.OnStartResize(pPoint);

            ArcTool lTool = DrawingTool as ArcTool;

            ArcAdjust.StartAngle = lTool.StartAngle;
            ArcAdjust.SweepAngle = lTool.SweepAngle;
        }
Exemplo n.º 2
0
        protected override void OnResizePaint(PaintEventArgs pArgs)
        {
            ArcTool lTool = DrawingTool as ArcTool;

            if (ResizingRect.Height > 0 &&
                ResizingRect.Width > 0)
            {
                pArgs.Graphics.DrawArc(Pen, ResizingRect, ArcAdjust.StartAngle, ArcAdjust.SweepAngle);
            }
        }
Exemplo n.º 3
0
        protected override void OnEndResize()
        {
            base.OnEndResize();

            if (ArcAdjust.SweepAngle < 0)
            {
                ArcAdjust.StartAngle += ArcAdjust.SweepAngle;
                ArcAdjust.SweepAngle  = -ArcAdjust.SweepAngle;
            }

            ArcTool lTool = DrawingTool as ArcTool;

            lTool.StartAngle = ArcAdjust.StartAngle;
            lTool.SweepAngle = ArcAdjust.SweepAngle;
        }