Пример #1
0
        /// <summary>
        /// Creates a copy of the point.
        /// </summary>
        /// <returns>Returns the copy.</returns>
        public MapSketchPoint Copy()
        {
            MapSketchPoint msp = new MapSketchPoint();

            msp.Square   = new Point(fSquare.X, fSquare.Y);
            msp.Location = new PointF(fLocation.X, fLocation.Y);

            return(msp);
        }
Пример #2
0
        public MapSketchPoint Copy()
        {
            MapSketchPoint mapSketchPoint = new MapSketchPoint()
            {
                Square   = new Point(this.fSquare.X, this.fSquare.Y),
                Location = new PointF(this.fLocation.X, this.fLocation.Y)
            };

            return(mapSketchPoint);
        }