protected override void OnStartResize(Point pPoint) { base.OnStartResize(pPoint); ArcTool lTool = DrawingTool as ArcTool; ArcAdjust.StartAngle = lTool.StartAngle; ArcAdjust.SweepAngle = lTool.SweepAngle; }
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); } }
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; }