private void SelectTeamButton() { var team = _teams.ElementAt(_selectedTeamIndex); var teamId = team.Id; var opponentId = _teams.ElementAt(GetNextIndex(_selectedTeamIndex + 1)).Id; TeamSelected?.Invoke(this, new TeamSelectedEventArgs(teamId, opponentId)); }
private void TeamClicked(TableView sender, TeamListItem teamListItem) { TeamSelected?.Invoke(teamListItem.team); }