Esempio n. 1
0
        /// <summary>
        /// Creates a copy of the sketch.
        /// </summary>
        /// <returns>Returns the copy.</returns>
        public MapSketch Copy()
        {
            MapSketch sketch = new MapSketch();

            sketch.Colour = fColour;
            sketch.Width  = fWidth;

            foreach (MapSketchPoint msp in fPoints)
            {
                sketch.Points.Add(msp.Copy());
            }

            return(sketch);
        }
Esempio n. 2
0
        public MapSketch Copy()
        {
            MapSketch mapSketch = new MapSketch()
            {
                Colour = this.fColour,
                Width  = this.fWidth
            };

            foreach (MapSketchPoint fPoint in this.fPoints)
            {
                mapSketch.Points.Add(fPoint.Copy());
            }
            return(mapSketch);
        }