public void InputLine(Point cur, bool isVertHor) { IsInputCutter = false; if (!IsInputLine) { InputingLine.A = cur; InputingLine.B = cur; IsInputLine = true; } else { if (isVertHor) { InputingLine.SetHorVertLine(cur); } else { InputingLine.B = cur; } InputingLine.Draw(g); Lines.Add(new Line() { Pen = InputingLine.Pen, A = InputingLine.A, B = InputingLine.B }); IsInputLine = false; } }
public void DrawMovingLine(Point cur, bool isVertHor) { PbCanvas.Refresh(); if (isVertHor) { InputingLine.SetHorVertLine(cur); } else { InputingLine.B = cur; } InputingLine.Draw(gMove); }
public void InputLine(Point cur, bool isVertHor) { if (!IsInputLine) { InputingLine = new Line(PenLine, cur, cur); IsInputLine = true; } else { if (isVertHor) { InputingLine.SetHorVertLine(cur); } else { InputingLine.B = cur; } InputingLine.Draw(g); Lines.Add(InputingLine); IsInputLine = false; } }