void mainMenu_OnNewGameStartClick(object sender, MainMenuEventArgs e) { mainMenu.Hide(); //sets the input profile ProfilesManager.SetProfile(e.UserName, true); //IOManagerEventReceiver will test if the CommandCenter Graphics is already loaded IOManager.NewGame(e, new MainMenuEventArgs(e.UserName)); }
void mainMenu_OnLoadGameClick(object sender, MainMenuEventArgs e) { mainMenu.Hide(); //IOManagerEventReceiver will test if the CommandCenter Graphics is already loaded IOManager.LoadGame(this, e); //sets the selected profile ProfilesManager.SetProfile(e.UserName, false); }