private void DrawPanelClick(object sender, EventArgs e) { if (ShapeCalcToolBox.CurrentTool == DrawTools.Pen) { DrawPanelUtil.PenBrushTool(Vertices, Edges, ElementsOfShape, graphicsDrawPanel, blackPen, DrawPanel, SenderMethod.DrawPanelClick); } if (ShapeCalcToolBox.CurrentTool == DrawTools.Curve) { DrawPanelUtil.CurveBrushTool(Vertices, ElementsOfShape, Edges, graphicsDrawPanel, blackPen, SenderMethod.DrawPanelClick); } if (ShapeCalcToolBox.CurrentTool == DrawTools.Drag) { DrawPanelUtil.MovePointTool(Vertices, ElementsOfShape, graphicsDrawPanel, blackPen, SenderMethod.DrawPanelClick); } }
// //CurveBrush-Tool // private void CurveBrush_Click(object sender, EventArgs e) { DrawPanel.Cursor = Cursors.Hand; ShapeCalcToolBox.SetCurrentTool((Button)sender, DrawTools.Curve); DrawPanelUtil.CurveBrushTool(Vertices, ElementsOfShape, Edges, graphicsDrawPanel, blackPen, SenderMethod.CurveButtonClick); }