private void AddPoint(DgPoint point) { var dot = new Ellipse { Width = 5, Height = 5, Stroke = Brushes.Red, Fill = Brushes.Red }; MyCanvas.Children.Add(dot); Canvas.SetTop(dot, point.Y); Canvas.SetLeft(dot, point.X); }
public DgLine(DgPoint p1, DgPoint p2) { P1 = p1; P2 = p2; }