예제 #1
0
 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>();
 }
예제 #2
0
 public MatchPage(IMatchViewModel matchViewModel)
 {
     InitializeComponent();
     BindingContext = matchViewModel;
 }