Exemplo n.º 1
0
 public GamePageViewModel(GameSummaryViewModel gameSummaryVm)
 {
     m_gameSummaryVm         = gameSummaryVm;
     PassActivePlayerCommand = new RelayCommand(PassActivePlayer);
     LoadGameCommand         = new RelayCommand(LoadGame);
     ExitGameCommand         = new RelayCommand(ExitGame);
 }
Exemplo n.º 2
0
        public GameHistoryViewModel(IDataService dataService, GameSummaryViewModel gameSummaryVm, ISelectPlayer playerSelector)
        {
            m_dataService    = dataService;
            m_gameSummaryVm  = gameSummaryVm;
            m_playerSelector = playerSelector;

            AddGameCommand      = new RelayCommand(AddGame);
            DeleteGameCommand   = new RelayCommand(DeleteGame);
            GameDetailCommand   = new RelayCommand(GameDetail);
            SelectPlayerCommand = new RelayCommand(SelectPlayer);
            ClearPlayerCommand  = new RelayCommand(ClearPlayer);
        }