Esempio n. 1
0
 /* Hook called when I am hosting a session, and that session has started
  * being available to others.
  */
 protected virtual void OnSessionEstablished()
 {
     session.GamerJoined += new EventHandler <GamerJoinedEventArgs>(session_GamerJoined);
     session.GamerLeft   += new EventHandler <GamerLeftEventArgs>(session_GamerLeft);
     UpdateVoice();
     if (SessionEstablished != null)
     {
         SessionEstablishedEventArgs se = new SessionEstablishedEventArgs();
         se.Session = session;
         SessionEstablished(this, se);
     }
 }
 void nw_SessionEstablished(object sender, SessionEstablishedEventArgs e)
 {
     /* When a network session is established for highscores, you're told about it here.
      */
     PrintEvent("Session Established: " + e.Session.Host.Gamertag);
 }
Esempio n. 3
0
 /* Hook called when I am hosting a session, and that session has started
  * being available to others.
  */
 protected virtual void OnSessionEstablished()
 {
     session.GamerJoined += new EventHandler<GamerJoinedEventArgs>(session_GamerJoined);
       session.GamerLeft += new EventHandler<GamerLeftEventArgs>(session_GamerLeft);
       UpdateVoice();
       if (SessionEstablished != null)
       {
     SessionEstablishedEventArgs se = new SessionEstablishedEventArgs();
     se.Session = session;
     SessionEstablished(this, se);
       }
 }
 void nw_SessionEstablished(object sender, SessionEstablishedEventArgs e)
 {
     /* When a network session is established for highscores, you're told about it here.
      */
     PrintEvent("Session Established: " + e.Session.Host.Gamertag);
 }