public GameControllerViewModel(GameController model)
     : base(model)
 {
     _playerHandler = new PlayerHandlerViewModel(model.PlayerHandler);
     _board         = new PlayBoardViewModel(model.Board);
     _decks         = new SyncedViewModelList <DeckDescription, DeckDescriptionViewModel>(model.Decks,
                                                                                          m => new DeckDescriptionViewModel(m));
     _deck = (from deck in Decks where deck.Equals(model.Deck) select deck).FirstOrDefault();
     Init();
 }
 public GameControllerViewModel()
     : base(new GameController())
 {
     _playerHandler = new PlayerHandlerViewModel();
     _board         = new PlayBoardViewModel();
     _decks         = new SyncedViewModelList <DeckDescription, DeckDescriptionViewModel>(new List <DeckDescription>(),
                                                                                          model => new DeckDescriptionViewModel(model));
     _deck = new DeckDescriptionViewModel();
     Init();
 }
 public bool Equals(DeckDescriptionViewModel other)
 {
     return(Model.Equals(other.Model));
 }
 public DeckDescriptionViewModel(DeckDescriptionViewModel other) : base(other)
 {
 }