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(); }); }
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(); }); }
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); }
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); }