Beispiel #1
0
 protected override void OnPolygonIsFinished(GeoPolygon ply)
 {
     if (OnSelectToolFinished != null)
     {
         OnSelectToolFinished(this, ply);
     }
 }
Beispiel #2
0
 public override void MouseRightDown(object sender, MouseButtonEventArgs e)
 {
     if (_moving)
     {
         _moving             = false;
         _polygon.Visibility = Visibility.Collapsed;
         if (_polygon.Data != null && _figure.Segments.Count > 2)
         {
             PathGeometry pth = _polygon.Data as PathGeometry;
             GeoPolygon   ply = GetGeoPolygon(pth);
             pth.Figures.Clear();
             _figure     = null;
             _crtSegment = null;
             OnPolygonIsFinished(ply);
         }
     }
 }
Beispiel #3
0
 protected virtual void OnPolygonIsFinished(GeoPolygon ply)
 {
 }