public ScoreEntryVM(CellVM vm) { this.Score = vm.Timer; this.Difficulty = vm.SelectedDifficulty; this.EntryCommand = new SimpleCommand(EntryExecute, EntryCanExecute); this.VM = vm; }
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); } } }