public DeckListModel( CardRepository repo, CollectedCardsDeckTransformation transformation, CollectionEditorModel collection) { _repo = repo; _transformation = transformation; _collectionEditor = collection; _collectionEditor.CollectionChanged += collectionChanged; _state.Collection = _collectionEditor.Snapshot(); _repo.PriceLoadingComplete += priceLoadingComplete; }
public DeckListModel( CardRepository repo, CollectedCardsDeckTransformation transformation, CollectionEditorModel collection) { _repo = repo; _transformation = transformation; _collectionEditor = collection; _collectionEditor.CollectionChanged += collectionChanged; _state.Collection = _collectionEditor.Snapshot(); _repo.PriceLoadingComplete += priceLoadingComplete; Serializer = new JsonSerializer(); Serializer.Converters.Add( new UnformattedJsonConverter(type => typeof(IEnumerable <int>).IsAssignableFrom(type))); }
public DeckListModel( CardRepository repo, PriceRepository priceRepo, CollectedCardsDeckTransformation transformation, CollectionEditorModel collection, IApplication app) { _app = app; _repo = repo; _priceRepo = priceRepo; _transformation = transformation; _collectionEditor = collection; _state.Collection = _collectionEditor.Snapshot(); _serializer = new JsonSerializer(); _serializer.Converters.Add( new UnformattedJsonConverter(type => typeof(IEnumerable <int>).IsAssignableFrom(type))); }