protected override void LoadContent()
        {
            GameRef.IsMouseVisible = true;

            base.LoadContent();

            var backgroundImage = GameRef.Content.Load<Texture2D>(@"Backgrounds\dialog");
            _background = new PictureBox(backgroundImage, GameRef.ScreenRectangle);
            ControlManager.Add(_background);

            Label pause = new Label();
            pause.Text = "Game Paused";
            pause.SetPosition
                (
                new Vector2(
                    (GameRef.ScreenWidth-ControlManager.SpriteFont.MeasureString(pause.Text).X)/2f+16,
                350)
                );
            ControlManager.Add(pause);
        }
        protected override void LoadContent()
        {
            base.LoadContent();

            _backgroundImage = new PictureBox(GameGraphics.GetTexture("bg").SourceTexture, GameRef.ScreenRectangle);
            ControlManager.Add(_backgroundImage);

            _pageTitle = new Label();
            _pageTitle.Text = "General Game Options..";
            ControlManager.Add(_pageTitle);

            _resolution = new SwitchBox("Resolution", new List<string> { "720p", "1080p" });
            _resolution.ItemChanged += new EventHandler(_resolution_ItemChanged);
            _resolution.Hover += new EventHandler(Hover);
            ControlManager.Add(_resolution);

            _viewMode = new SwitchBox("View Mode", new List<string> { "Window", "Full Screen" });
            _viewMode.ItemChanged += new EventHandler(_viewMode_ItemChanged);
            _viewMode.Hover +=new EventHandler(Hover);
            ControlManager.Add(_viewMode);

            var volumes = new List<string>();
            for (int i = 0; i < 105; i += 5)
                volumes.Add(i.ToString());
            volumes.Reverse();
            _volume = new SwitchBox("Audio Volume", volumes);
            _volume.ItemChanged += new EventHandler(_volume_ItemChanged);
            _volume.Hover += new EventHandler(Hover);
            ControlManager.Add(_volume);

            _music = new SwitchBox("Gameplay Music", new List<string> { "On", "Off" });
            _music.ItemChanged += new EventHandler(_music_ItemChanged);
            _music.Hover += new EventHandler(Hover);
            ControlManager.Add(_music);

            _soundEffects = new SwitchBox("Sound Effects", new List<string> { "On", "Off" });
            _soundEffects.ItemChanged += new EventHandler(_soundEffects_ItemChanged);
            _soundEffects.Hover += new EventHandler(Hover);
            ControlManager.Add(_soundEffects);

            _back = new LinkLabel();
            _back.Text = "Back to Main Menu";
            _back.Size = _back.SpriteFont.MeasureString(_back.Text);
            _back.Selected += new EventHandler(_back_Selected);
            _back.Click += new EventHandler(_back_Selected);
            _back.Hover += new EventHandler(Hover);
            ControlManager.Add(_back);

            UpdateLayout();

            ControlManager.NextControl();
            ControlManager.FocusChanged += new EventHandler(ControlManager_FocusChanged);
        }
        protected override void LoadContent()
        {
            base.LoadContent();

            _backgroundImage = new PictureBox(GameGraphics.GetTexture("bg").SourceTexture, GameRef.ScreenRectangle);
            ControlManager.Add(_backgroundImage);

            _pageTitle = new Label();
            _pageTitle.Text = "New Game Settings..";
            ControlManager.Add(_pageTitle);

            _resources = new SwitchBox("Player Resources", new List<string>() { "High", "Normal", "Low" });
            _resources.ItemChanged +=new EventHandler(_resources_ItemChanged);
            _resources.Hover+=new EventHandler(Hover);
            ControlManager.Add(_resources);

            _population = new SwitchBox("Max Population", new List<string>() { "50", "100", "150", "200", "500" });
            _population.ItemChanged +=new EventHandler(_population_ItemChanged);
            _population.Hover += new EventHandler(Hover);
            ControlManager.Add(_population);

            _mapSize = new SwitchBox("Map Size", new List<string>() { "Small", "Normal" ,"Large" });
            _mapSize.ItemChanged +=new EventHandler(_mapSize_ItemChanged);
            _mapSize.Hover += new EventHandler(Hover);
            ControlManager.Add(_mapSize);

             _mapStyle = new SwitchBox("Map Terrain Style", new List<string>() { "Spring", "Desert" ,"Forest" });
            _mapStyle.ItemChanged +=new EventHandler(_mapStyle_ItemChanged);
            _mapStyle.Hover += new EventHandler(Hover);
            ControlManager.Add(_mapStyle);

             _allowCheats = new SwitchBox("Allow Cheats", new List<string>() { "Yes", "No"  });
            _allowCheats.ItemChanged +=new EventHandler(_allowCheats_ItemChanged);
            _allowCheats.Hover += new EventHandler(Hover);
            ControlManager.Add(_allowCheats);

            _startGame = new LinkLabel();
            _startGame.Text = "Start Game";
            _startGame.Size = _startGame.SpriteFont.MeasureString(_startGame.Text);
            _startGame.Selected += new EventHandler(_startGame_Selected);
            _startGame.Click += new EventHandler(_startGame_Selected);
            _startGame.Hover += new EventHandler(Hover);
            ControlManager.Add(_startGame);

            _back = new LinkLabel();
            _back.Text = "Back to Main Menu";
            _back.Size = _back.SpriteFont.MeasureString(_back.Text);
            _back.Selected += new EventHandler(_back_Selected);
            _back.Click += new EventHandler(_back_Selected);
            _back.Hover += new EventHandler(Hover);
            ControlManager.Add(_back);

            ControlManager.NextControl();
            ControlManager.FocusChanged += new EventHandler(ControlManager_FocusChanged);

            UpdateLayout();

            ControlManager_FocusChanged(_resources, null);
        }