private void DrawPanelMouseDown(object sender, MouseEventArgs e) { if (ShapeCalcToolBox.CurrentTool == DrawTools.Drag) { DrawPanelUtil.MovePointTool(Vertices, ElementsOfShape, graphicsDrawPanel, blackPen, SenderMethod.DrawPanelMouseDown); } }
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); } }
// //MovePoint-Tool // private void MovePoint_Click(object sender, EventArgs e) { DrawPanel.Cursor = Cursors.Hand; ShapeCalcToolBox.SetCurrentTool((Button)sender, DrawTools.Drag); DrawPanelUtil.MovePointTool(Vertices, ElementsOfShape, graphicsDrawPanel, blackPen, SenderMethod.DragButtonClick); }