public Window CreateGameResult()
        {
            var resultWindow = new Window(_gameInfo.Manager)
            {
                Text       = "Game Results",
                Height     = 400,
                AutoScroll = true,
                Resizable  = false
            };

            resultWindow.Closed += (sender, args) => { MenuButton.Enabled = true; };
            resultWindow.BringToFront();
            resultWindow.Init();

            var tabbedControl = new EndGameResults().GetTabbedControl(_gameInfo.Manager, _gameInfo.PlayerList);

            tabbedControl.Init();
            tabbedControl.MinimumHeight = resultWindow.Height - 40;
            tabbedControl.MinimumWidth  = resultWindow.Width - 40;
            tabbedControl.Parent        = resultWindow;

            ControlManager.Add(resultWindow);
            tabbedControl.SelectedIndex = 0;

            return(resultWindow);
        }
Example #2
0
        public Window CreateGameResult()
        {
            var resultWindow = new Window(_gameInfo.Manager) {
                Text = "Game Results",
                Height = 400,
                AutoScroll = true,
                Resizable = false
            };
            resultWindow.Closed += (sender, args) => { MenuButton.Enabled = true; };
            resultWindow.BringToFront();
            resultWindow.Init();

            var tabbedControl = new EndGameResults().GetTabbedControl(_gameInfo.Manager, _gameInfo.PlayerList);
            tabbedControl.Init();
            tabbedControl.MinimumHeight = resultWindow.Height - 40;
            tabbedControl.MinimumWidth = resultWindow.Width - 40;
            tabbedControl.Parent = resultWindow;

            ControlManager.Add(resultWindow);
            tabbedControl.SelectedIndex = 0;

            return resultWindow;
        }