public static void MakeSelection(string name)
 {
     Star s = GalaxyGenerator.GetStarByName(name);
     if (s != null)
     {
         selectedStar = s;
         sprite.Position = s.Position;
     }
     RaiseStarSelectedEvent(null, new EventArgs());  //Raise Star Selected Event
 }
 public void SetCurrentStar(ref Star value)
 {
     currentStar = value;
     starSystemStar.Color = currentStar.Color;
 }
 public void ClearCurrentStar()
 {
     currentStar = null;
 }
 public static void MakeSelection(Star star)
 {
     selectedStar = star;
     sprite.Position = star.Position;
     RaiseStarSelectedEvent(null, new EventArgs());  //Raise Star Selected Event
 }
        /// <summary>
        /// This method generates a star with a position based on the Mersenne Twister algorithm.
        /// </summary>
        private static void GenerateStar(int index)
        {
            Vector2 position = new Vector2(mt.Next(plotArea.X, plotArea.Width), mt.Next(plotArea.Y, plotArea.Height));

            galaxyMap[index] = new Star();
            galaxyMap[index].Position = position;
        }