public EndGameViewModel(CommandContainer container, BuncoDiceGameMainGameClass game) { CommandContainer = container; _game = game; CommandContainer.ManuelFinish = false; CommandContainer.IsExecuting = false; }
public BuncoDiceGameMainViewModel(IEventAggregator aggregator, CommandContainer commandContainer, IGamePackageResolver resolver, ISaveSinglePlayerClass state, GlobalClass global ) { _aggregator = aggregator; _aggregator.Subscribe(this); CommandContainer = commandContainer; _resolver = resolver; _state = state; _global = global; CommandContainer.ManuelFinish = true; CommandContainer.IsExecuting = true; //not sure. _mainGame = resolver.ReplaceObject <BuncoDiceGameMainGameClass>(); //hopefully this works. means you have to really rethink. }