Пример #1
0
        /// <summary>
        /// Closes this game and opens the matchmaker to allow the user
        /// to play a new game.
        /// </summary>
        public void HandleOpenMatchmakerEvent()
        {
            window.DoClose();

            MatchmakingForm      matchmakingWindow = new MatchmakingForm();
            MatchmakerController controller        = new MatchmakerController(matchmakingWindow);

            matchmakingWindow.Show();
        }
Пример #2
0
        /// <summary>
        /// Closes this form and opens a new Matchmaking window to
        /// allow for joining in a new game.
        /// </summary>
        private void HandleCloseResults()
        {
            // Close this ResultsForm window
            window.DoClose();

            MatchmakingForm      matchmakingWindow = new MatchmakingForm();
            MatchmakerController controller        = new MatchmakerController(matchmakingWindow);

            matchmakingWindow.Show();
        }