public void Update(A8RoundRummyMainGameClass mainGame) { _roundList = mainGame.SaveRoot !.RoundList; _roundList.CollectionChanged -= RoundList_CollectionChanged; _roundList.CollectionChanged += RoundList_CollectionChanged; PopulateList(); }
private readonly A8RoundRummyGameContainer _gameContainer; //if not needed, delete. public A8RoundRummyMainViewModel(CommandContainer commandContainer, A8RoundRummyMainGameClass mainGame, A8RoundRummyVMData viewModel, BasicData basicData, TestOptions test, IGamePackageResolver resolver, A8RoundRummyGameContainer gameContainer ) : base(commandContainer, mainGame, viewModel, basicData, test, resolver) { _mainGame = mainGame; _model = viewModel; _gameContainer = gameContainer; _model.Deck1.NeverAutoDisable = true; }