/// <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(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); MatchmakingForm window = new MatchmakingForm(); MatchmakerController controller = new MatchmakerController(window); Application.Run(window); }
/// <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(); }