Exemplo n.º 1
0
 public override void Initialize()
 {
   base.Initialize();
   this.IsDynamic = true;
   this.OnClose = (Action) (() =>
   {
     if (this.leaderboard == null)
       return;
     this.GameState.LiveConnectionChanged -= new Action(this.ChangeView);
     this.leaderboard = (CachedLeaderboard) null;
   });
   this.XButtonAction = (Action) (() =>
   {
     ++this.view;
     if (this.view > LeaderboardView.Overall)
       this.view = LeaderboardView.Friends;
     this.ChangeView();
   });
 }
Exemplo n.º 2
0
 public override void Initialize()
 {
     base.Initialize();
     this.IsDynamic = true;
     this.OnClose   = (Action)(() =>
     {
         if (this.leaderboard == null)
         {
             return;
         }
         this.GameState.LiveConnectionChanged -= new Action(this.ChangeView);
         this.leaderboard = (CachedLeaderboard)null;
     });
     this.XButtonAction = (Action)(() =>
     {
         ++this.view;
         if (this.view > LeaderboardView.Overall)
         {
             this.view = LeaderboardView.Friends;
         }
         this.ChangeView();
     });
 }
Exemplo n.º 3
0
 private void InitLeaderboards()
 {
     this.leaderboard  = new CachedLeaderboard(this.GameState.ActiveGamer, 10);
     this.OnScrollDown = (Action)(() =>
     {
         if (this.leaderboard.InError || !this.leaderboard.CanPageDown)
         {
             return;
         }
         this.moveToTop = true;
         this.leaderboard.PageDown(new Action(this.Refresh));
     });
     this.OnScrollUp = (Action)(() =>
     {
         if (this.leaderboard.InError || !this.leaderboard.CanPageUp)
         {
             return;
         }
         this.moveToLast = true;
         this.leaderboard.PageUp(new Action(this.Refresh));
     });
     this.ChangeView();
     this.GameState.LiveConnectionChanged += new Action(this.CheckLive);
 }
Exemplo n.º 4
0
 private void InitLeaderboards()
 {
   this.leaderboard = new CachedLeaderboard(this.GameState.ActiveGamer, 10);
   this.OnScrollDown = (Action) (() =>
   {
     if (this.leaderboard.InError || !this.leaderboard.CanPageDown)
       return;
     this.moveToTop = true;
     this.leaderboard.PageDown(new Action(this.Refresh));
   });
   this.OnScrollUp = (Action) (() =>
   {
     if (this.leaderboard.InError || !this.leaderboard.CanPageUp)
       return;
     this.moveToLast = true;
     this.leaderboard.PageUp(new Action(this.Refresh));
   });
   this.ChangeView();
   this.GameState.LiveConnectionChanged += new Action(this.CheckLive);
 }