Exemplo n.º 1
0
        public PlayersViewModel(Context context, INavigationProvider navigationProvider)
        {
            _context = context;
            _navigationProvider = navigationProvider;

            _detailsCommand = new RelayCommand(delegate
            {
                _navigationProvider.GoForward(new PlayerViewModel(_context.GetPlayer(_selectedPlayer)));
            });
            _detailsCommand.SetCanExecute(false);
        }