/// <summary> /// Helper method shared by the Live and System Link menu event handlers. /// </summary> void CreateOrFindSession(NetworkSessionType sessionType, PlayerIndex playerIndex) { // First, we need to make sure a suitable gamer profile is signed in. ProfileSignInScreen profileSignIn = new ProfileSignInScreen(sessionType); // Hook up an event so once the ProfileSignInScreen is happy, // it will activate the CreateOrFindSessionScreen. profileSignIn.ProfileSignedIn += delegate { GameScreen createOrFind = new CreateOrFindSessionScreen(sessionType); ScreenManager.AddScreen(createOrFind, playerIndex); }; // Activate the ProfileSignInScreen. ScreenManager.AddScreen(profileSignIn, playerIndex); }