public BoardGameViewModel()
 {
     _boardGameContainer = new ItemsChangeObservableCollection<BoardGame>();
     _boardGameContainer.Add(new BoardGame("Monopoly", "EA Games", "1st", 500, 0, 0));
     _boardGameContainer.Add(new BoardGame("Twister", "Games", "2nd", 300, 0, 0));
     _newGame = new BoardGame();
     _increment = new CommandHandler(IncrementCommand);
     _decrement = new CommandHandler(DecrementCommand);
 }
 /// <summary>
 /// Add or update
 /// </summary>
 public override void AddCommand()
 {
     //check for null value
     if (String.IsNullOrEmpty(_newGame.BoardGameName))
     {
         //nothing should happen or be added
     }
     //check if exists
     else if (!CheckGame())
     {
         _boardGameContainer.Add(new BoardGame(_newGame.BoardGameName, _newGame.Publisher, _newGame.Rank, _newGame.Price, _newGame.Won, _newGame.Lost));
     }
     //update is okay if it already exists
     else
     {
         foreach (BoardGame boardGame in _boardGameContainer)
         {
             BoardGame bg = new BoardGame(_newGame.BoardGameName, _newGame.Publisher, _newGame.Rank, _newGame.Price, _newGame.Won, _newGame.Lost);
             if (bg.BoardGameName == boardGame.BoardGameName)
             {
                 boardGame.Price = bg.Price;
                 boardGame.Publisher = bg.Publisher;
                 boardGame.Rank = bg.Rank;
                 boardGame.Won = bg.Won;
                 boardGame.Lost = bg.Lost;
             }
         }
     }
 }