public object Clone() { HatchBoundaryPath copy; if (this.contour.Count > 0) { List <EntityObject> copyContour = new List <EntityObject>(); foreach (EntityObject entity in this.contour) { copyContour.Add((EntityObject)entity.Clone()); } copy = new HatchBoundaryPath(copyContour); } else { List <Edge> copyEdges = new List <Edge>(); foreach (Edge edge in this.edges) { copyEdges.Add((Edge)edge.Clone()); } copy = new HatchBoundaryPath(copyEdges); } copy.PathType = this.pathType; return(copy); }
protected virtual void OnHatchBoundaryPathRemovedEvent(HatchBoundaryPath item) { HatchBoundaryPathRemovedEventHandler ae = this.HatchBoundaryPathRemoved; if (ae != null) { ae(this, new ObservableCollectionEventArgs <HatchBoundaryPath>(item)); } }