예제 #1
0
 protected override void OnPolygonIsFinished(GeoPolygon ply)
 {
     if (OnSelectToolFinished != null)
     {
         OnSelectToolFinished(this, ply);
     }
 }
예제 #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);
         }
     }
 }
예제 #3
0
 protected virtual void OnPolygonIsFinished(GeoPolygon ply)
 {
 }