Ejemplo n.º 1
0
        public static void HighlightConstellation(MapConstellation constellation)
        {
            constellation.Active = true;

            foreach (var item in _constellations)
            {
                if (item != constellation)
                    item.Active = false;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constallations in the EVE Universe
        /// </summary>
        /// <returns><c>Bag</c> of Constallations in EVE</returns>
        internal static Bag <MapConstellation> Constellations()
        {
            var list = new IndexedList <MapConstellation>();

            foreach (mapConstellations constellation in Context.mapConstellations)
            {
                var item = new MapConstellation
                {
                    ID   = constellation.constellationID,
                    Name = constellation.constellationName,
                };

                if (constellation.regionID.HasValue)
                {
                    item.RegionID = constellation.regionID.Value;
                }

                list.Items.Add(item);
            }

            return(new Bag <MapConstellation>(list));
        }