private void AddExecute(object obj) { this.User = new User(FirstName, LastName, 0); DBActions.AddActiveUser(this.User); DBActions.AddUser(this.User); //WindowService.ShowWindow(new DifficultyVM(this), new DifficultyWindow()); }
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); } } }