Exemple #1
0
 private void DrawPanelMouseDown(object sender, MouseEventArgs e)
 {
     if (ShapeCalcToolBox.CurrentTool == DrawTools.Drag)
     {
         DrawPanelUtil.MovePointTool(Vertices, ElementsOfShape, graphicsDrawPanel, blackPen, SenderMethod.DrawPanelMouseDown);
     }
 }
Exemple #2
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);
     }
 }
Exemple #3
0
 //
 //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);
 }