public UnoVMData(IEventAggregator aggregator, CommandContainer command) { Deck1 = new DeckObservablePile <UnoCardInformation>(aggregator, command); Pile1 = new PileObservable <UnoCardInformation>(aggregator, command); PlayerHand1 = new HandObservable <UnoCardInformation>(command); PlayerHand1.Text = "Your Cards"; ColorPicker = new SimpleEnumPickerVM <EnumColorTypes, CheckerChoiceCP <EnumColorTypes> >(command, new ColorListChooser <EnumColorTypes>()); Stops = new CustomStopWatchCP(); Stops.MaxTime = 3000; ColorPicker.AutoSelectCategory = EnumAutoSelectCategory.AutoEvent; }
private void LoadItems() { if (_basicData.MultiPlayer) { Stops = new CustomStopWatchCP(); Stops.TimeUp += Stops_TimeUp; Stops.MaxTime = 120000; //try 2 seconds to start with. //Stops.MaxTime = 120000; //2 minutes should be enough time to try to find a word. //some other iffy things. } _model.TileBoard1 = new TileBoardObservable(_command); }
public MillebournesVMData(IEventAggregator aggregator, CommandContainer command) { Deck1 = new DeckObservablePile <MillebournesCardInformation>(aggregator, command); Pile1 = new PileObservable <MillebournesCardInformation>(aggregator, command); PlayerHand1 = new HandObservable <MillebournesCardInformation>(command); OtherPile = Pile1; Pile2 = new PileObservable <MillebournesCardInformation>(aggregator, command); Stops = new CustomStopWatchCP(); Stops.MaxTime = 3000; }
public DutchBlitzVMData(IEventAggregator aggregator, CommandContainer command, DutchBlitzGameContainer gameContainer) { Deck1 = new DeckObservablePile <DutchBlitzCardInformation>(aggregator, command); Pile1 = new PileObservable <DutchBlitzCardInformation>(aggregator, command); PlayerHand1 = new HandObservable <DutchBlitzCardInformation>(command); Stops = new CustomStopWatchCP(); _aggregator = aggregator; _command = command; _gameContainer = gameContainer; Stops.MaxTime = 7000; Pile1.Text = "Waste"; StockPile = new StockViewModel(command, aggregator); PublicPiles1 = new PublicViewModel(gameContainer); //hopefully no overflows using the game container (?) OtherPile = Pile1; }