Beispiel #1
0
 /// <summary>
 /// Gets the regional map and location associated with the point, if any.
 /// </summary>
 /// <param name="map">The map associated with the point.</param>
 /// <param name="map_location">The map location associated with the point.</param>
 /// <param name="project">The current project.</param>
 public void GetRegionalMapArea(ref RegionalMap map, ref MapLocation map_location, Project project)
 {
     if ((fRegionalMapID != Guid.Empty) && (fMapLocationID != Guid.Empty))
     {
         map = Session.Project.FindRegionalMap(fRegionalMapID);
         if (map != null)
         {
             map_location = map.FindLocation(fMapLocationID);
         }
     }
 }
Beispiel #2
0
        /// <summary>
        /// Creates a copy of the map.
        /// </summary>
        /// <returns>Returns the copy.</returns>
        public RegionalMap Copy()
        {
            RegionalMap rm = new RegionalMap();

            rm.Name  = fName;
            rm.ID    = fID;
            rm.Image = fImage;

            foreach (MapLocation ml in fLocations)
            {
                rm.Locations.Add(ml.Copy());
            }

            return(rm);
        }
Beispiel #3
0
        public RegionalMap Copy()
        {
            RegionalMap regionalMap = new RegionalMap()
            {
                Name  = this.fName,
                ID    = this.fID,
                Image = this.fImage
            };

            foreach (MapLocation fLocation in this.fLocations)
            {
                regionalMap.Locations.Add(fLocation.Copy());
            }
            return(regionalMap);
        }