private void UpMouse(object sender, MouseEventArgs args) { if (ChangeDot != null) { ChangeDot = null; } if (ChangeLine != null) { ChangeLine.MouseLeftBottonUp(); ChangeLine = null; } ChangePolygone = null; }
public void addNewDots(MyLine line) { var dot = new Dot(line.GetCenter(), this, 2); var index = dots.IndexOf(line.GetFirstPoint()); dots.Insert(index, dot); dot.drawPoint(); foreach (var i in lines) { i.remove(); } lines.Clear(); redrawLine(); }