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