Example #1
0
        public ScoreEntryVM(CellVM vm)
        {
            this.Score = vm.Timer;

            this.Difficulty = vm.SelectedDifficulty;

            this.EntryCommand = new SimpleCommand(EntryExecute, EntryCanExecute);

            this.VM = vm;
        }
Example #2
0
        public ScoreDisplayVM(CellVM vm)
        {
            Scores = new ObservableCollection <PlayerScore>();
            List <PlayerScore> playerList = DBActions.GetPlayerScores();

            foreach (PlayerScore s in playerList)
            {
                if (s.Difficulty.ToString().Trim() == vm.SelectedDifficulty.ToString().Trim())
                {
                    this.Scores.Add(s);
                }
            }
        }