public TeamSetupViewModel(IMatchViewModel matchViewModel, IDialogService dialogService, INavigationService navigationService, IProfilerService profilerService) { MatchViewModel = matchViewModel; m_dialogService = dialogService; m_navigationService = navigationService; m_profilerService = profilerService; StartCommand = new AsyncCommand(_ => NavigateToMatch(), _ => Players.Any(p => p.IsPlaying)); AddPlayerCommand = new Command(AddPlayerOrPlayers, () => !string.IsNullOrEmpty(NewPlayerName)); Players = new ObservableCollection <PlayerViewModel>(); }
public MatchPage(IMatchViewModel matchViewModel) { InitializeComponent(); BindingContext = matchViewModel; }