Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public DgLine(DgPoint p1, DgPoint p2)
 {
     P1 = p1;
     P2 = p2;
 }