Пример #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            // Perform any additional setup after loading the view, typically from a nib.
            _games = new List<TableItemGroup>();
            _activeGames = new ActiveGamesTableSource(_games);
            GamesTable.Source = _activeGames;
            Add (GamesTable);

            _activeGames.RowClicked += (gameId) => {
                JoinGame(gameId);
            };
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            // Perform any additional setup after loading the view, typically from a nib.
            _games = new List<TableItemGroup>();
            _activeGames = new ActiveGamesTableSource(_games);
            GamesTable.Source = _activeGames;
            Add (GamesTable);

            FetchGames();

            _activeGames.GameClicked += (gameId) => {
                var gameView = new GameViewController(gameId);
                this.NavigationController.PushViewController(gameView, true);
            };
        }