Exemplo n.º 1
0
        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());
        }
Exemplo n.º 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);
                }
            }
        }