示例#1
0
        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);
        }
示例#2
0
        protected virtual void OnHatchBoundaryPathRemovedEvent(HatchBoundaryPath item)
        {
            HatchBoundaryPathRemovedEventHandler ae = this.HatchBoundaryPathRemoved;

            if (ae != null)
            {
                ae(this, new ObservableCollectionEventArgs <HatchBoundaryPath>(item));
            }
        }