Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 //
 //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);
 }