Inheritance: System.EventArgs
Example #1
0
 /// <summary>
 /// Raised when the Live player signed out
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnLiveGamerSignedOut(object sender, SignedOutEventArgs e)
 {
     IdentifiedPlayer identifiedPlayer = LocalPlayers[e.Gamer.PlayerIndex];
     LocalPlayers.Remove(e.Gamer.PlayerIndex);
  
     OnPlayerLogoff(identifiedPlayer);
 }
Example #2
0
 protected virtual void OnSignedOut(SignedOutEventArgs e)
 {
     if (SignedOut != null)
     {
         // Invokes the delegates.
         SignedOut(this, e);
     }
 }
Example #3
0
 protected virtual void OnSignedOut(SignedOutEventArgs e)
 {
     if (SignedInGamer.SignedOut == null)
     {
         return;
     }
     SignedInGamer.SignedOut((object)this, e);
 }
Example #4
0
		protected virtual void OnSignedOut(SignedOutEventArgs e)
		{
			 if (SignedOut != null) 
			 {
			    // Invokes the delegates. 
			    SignedOut(this, e);
			 }
		}
 protected virtual void OnSignedOut(SignedOutEventArgs e)
 {
     EventHelpers.Raise(this, SignedOut, e);
 }
Example #6
0
        public static void Gamer_LogoutSuccess(object sender, SignedOutEventArgs e)
        {
            Console.WriteLine("Gamer: " + e.Gamer.Gamertag + " signed out.");

            // reset gamer
            gamer = null;

            // add signedin handler
            SignedInGamer.SignedIn += signInHandler;
        }
Example #7
0
        internal static void SignOutEventHandler(object sender, SignedOutEventArgs e)
        {
            LocalGamer gamer = e.Gamer.Tag as LocalGamer;

            #if DEBUG
            Log.Trace(String.Format("{0} signed out", gamer.GamerTag), 4.0f);
            #endif

            if (OnSignedOut != null)
                OnSignedOut(gamer);

            gamer.Clear();
            SignedInGamers.Remove(gamer);
        }
Example #8
0
 //Event to be triggered when a player signs out of the game
 void SignedOut(object sender, SignedOutEventArgs e)
 {
     clPopup.Show("Oohooh!", "It seems a player has changed account!" +
         "\nYou will now be directed back to the start screen!", 0);
 }
Example #9
0
 void SignedInGamer_SignedOut(object sender, SignedOutEventArgs e)
 {
     LoadingScreen.Load(screenManager, false, null, new PressStartScreen(null));
     // reload audioEM = new AudioEM(this);
     audioEM = new AudioEM(this);
 }
Example #10
0
 /* When no gamers are signed in, the session will no longer be usable.
  */
 void SignedInGamer_SignedOut(object sender, SignedOutEventArgs e)
 {
     if (SignedInGamer.SignedInGamers.Count == 0)
       {
     DisposeSession();
       }
 }
Example #11
0
 protected virtual void OnSignedOut(SignedOutEventArgs e)
 {
   if (SignedInGamer.SignedOut == null)
     return;
   SignedInGamer.SignedOut((object) this, e);
 }
        private void DoPlayerDisconnected(object sender, SignedOutEventArgs e)
        {
            Player player = Inputs.PlayersController.GetPlayer(e.Gamer.PlayerIndex);
            player.State = PlayerState.Disconnected;

            NotifyPlayerDisconnected(player);
        }
Example #13
0
 void SignedInGamer_SignedOut(object sender, SignedOutEventArgs e)
 {
     if (e.Gamer.PlayerIndex == mainPlayer)
     {
         SwitchGamer();
     }
 }
 void SignedInGamer_SignedOut(object sender, SignedOutEventArgs e)
 {
     needsUpdate = true;
 }