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 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 PlayerHandlerViewModel(PlayerHandlerViewModel other)
     : base(other)
 {
     _allPlayersSynced = new SyncedViewModelList <Player, PlayerViewModel>(new List <Player>(other.AllPlayers.Models()), m => new PlayerViewModel(m));
     Init();
 }