public GalaxyMap()
        {
            InitializeComponent();

           OverlayDisplay.MouseMove += MouseMove_Handler;

            OverlayDisplay.MouseLeftButtonDown += LeftMouseButtonDown_Handler;
            OverlayDisplay.MouseLeftButtonUp += LeftMouseButtonUp_Handler;

            OverlayDisplay.MouseRightButtonDown += RightMouseButtonDown_Handler;
            OverlayDisplay.MouseRightButtonUp += RightMouseButtonUp_Handler;

            OverlayDisplay.MouseWheel += MouseWheel_Handler;

            starSystemSet = starSystemCollection.starSystemSet;

            starSystemList = starSystemCollection.starSystemList;

            starList = starSystemCollection.starList;

            BuildOverlay();

            currentSystem = starSystemCollection.GetCurrentSystem("Beta Volantis");

            starSystemList = starSystemCollection.UpdateStarSystemList("Beta Volantis", -zoom, zoom);

            starList = starSystemCollection.BuildStarList(starSystemList);

            RenderStars();

            rotator.Tick += Rotator_Tick;
            rotator.Interval = TimeSpan.FromMilliseconds(50);
            rotator.Start();
        }
        public GalaxyMap()
        {
            InitializeComponent();

            GalaxyMapCanvas.Width = 570;
            GalaxyMapCanvas.Height = 570;
            GalaxyMapCanvas.HorizontalAlignment= HorizontalAlignment.Left;
            GalaxyMapCanvas.VerticalAlignment = VerticalAlignment.Top;

            GalaxyMapCanvas.Background=new SolidColorBrush(Colors.Aquamarine);

            StarDisplay.Width = GalaxyMapCanvas.Width;
            StarDisplay.Height = GalaxyMapCanvas.Height;
            StarDisplay.HorizontalAlignment = HorizontalAlignment.Left;
            StarDisplay.VerticalAlignment = VerticalAlignment.Top;

            StarDisplay.Background = new SolidColorBrush(Color.FromArgb(0xFF,0x09,0x08,0x29));

            GalaxyMapCanvas.Children.Add(StarDisplay);

            OverlayDisplay.Width = 5;
            OverlayDisplay.Height = 5;
            OverlayDisplay.HorizontalAlignment=HorizontalAlignment.Center;
            OverlayDisplay.VerticalAlignment=VerticalAlignment.Center;

            OverlayDisplay.Background = new SolidColorBrush(Color.FromArgb(0x00,0xF9,0x08,0x29));

            headerLabel.Width = 550;
            headerLabel.Height = 30;
            headerLabel.HorizontalAlignment=HorizontalAlignment.Left;
            headerLabel.VerticalAlignment=VerticalAlignment.Top;
            headerLabel.Margin=new Thickness(10);

            headerLabel.Foreground = new SolidColorBrush(Colors.White);

            GalaxyMapCanvas.Children.Add(headerLabel);

            GalaxyMapGrid.Children.Add(GalaxyMapCanvas);
            GalaxyMapGrid.Children.Add(OverlayDisplay);

            GalaxyMapCanvas.MouseMove += MouseMove_Handler;
            GalaxyMapCanvas.MouseLeftButtonDown += LeftMouseButtonDown_Handler;
            GalaxyMapCanvas.MouseLeftButtonUp += LeftMouseButtonUp_Handler;
            GalaxyMapCanvas.MouseRightButtonDown += RightMouseButtonDown_Handler;
            GalaxyMapCanvas.MouseRightButtonUp += RightMouseButtonUp_Handler;
            GalaxyMapCanvas.MouseWheel += MouseWheel_Handler;

            starSystemSet = starSystemCollection.starSystemSet;

            starSystemList = starSystemCollection.starSystemList;

            starList = starSystemCollection.starList;

            BuildEdge();

            BuildOverlay();

            currentSystem = starSystemCollection.GetCurrentSystem("Beta Volantis");

            starSystemList = starSystemCollection.UpdateStarSystemList("Beta Volantis", -zoom, zoom);

            starList = starSystemCollection.BuildStarList(starSystemList);

            RenderStars();

            rotator.Tick += Rotator_Tick;
            rotator.Interval = TimeSpan.FromMilliseconds(50);
            rotator.Start();
        }