public InGameViewModel(INavigationService navigation, IGame game, IGameDimensions gameDimensions, IGameTimer timer, IDispatcher dispatcher, IArtworkRequester requester) { Column1 = new ObservableCollection<Tile>(); Column2 = new ObservableCollection<Tile>(); Column3 = new ObservableCollection<Tile>(); Column4 = new ObservableCollection<Tile>(); Column5 = new ObservableCollection<Tile>(); Column6 = new ObservableCollection<Tile>(); Column7 = new ObservableCollection<Tile>(); Column8 = new ObservableCollection<Tile>(); Column9 = new ObservableCollection<Tile>(); var modelColumn1 = new ObservableCollection<Tile>(); var modelColumn2 = new ObservableCollection<Tile>(); var modelColumn3 = new ObservableCollection<Tile>(); var modelColumn4 = new ObservableCollection<Tile>(); var modelColumn5 = new ObservableCollection<Tile>(); var modelColumn6 = new ObservableCollection<Tile>(); var modelColumn7 = new ObservableCollection<Tile>(); var modelColumn8 = new ObservableCollection<Tile>(); var modelColumn9 = new ObservableCollection<Tile>(); Columns.Add(Column1); Columns.Add(Column2); Columns.Add(Column3); Columns.Add(Column4); Columns.Add(Column5); Columns.Add(Column6); Columns.Add(Column7); Columns.Add(Column8); Columns.Add(Column9); _modelColumns.Add(modelColumn1); _modelColumns.Add(modelColumn2); _modelColumns.Add(modelColumn3); _modelColumns.Add(modelColumn4); _modelColumns.Add(modelColumn5); _modelColumns.Add(modelColumn6); _modelColumns.Add(modelColumn7); _modelColumns.Add(modelColumn8); _modelColumns.Add(modelColumn9); _navigationService = navigation; _game = game; _gameDimensions = gameDimensions; _timer = timer; _dispatcher = dispatcher; _requester = requester; _dropStep = _gameDimensions.GameHeight / Game.NumberStepsToDrop; }
public ArtworkPreviewViewModel(INavigationService navService, IArtworkRequester requester) { _navService = navService; _requester = requester; ImageUris = new ObservableCollection<Uri>(); }