Esempio n. 1
0
        public CombinedListingPresenter(ICombinedListingView view, ICollectionListingModel collectionListingModel, IBeatmapListingModel beatmapListingModel)
        {
            _view            = view;
            _beatmapsView    = _view.beatmapListingView;
            _collectionsView = _view.CollectionListingView;

            BeatmapListingModel = beatmapListingModel;
            new BeatmapListingPresenter(_beatmapsView, BeatmapListingModel);
            new CollectionListingPresenter(_collectionsView, collectionListingModel);

            _collectionsView.SelectedCollectionChanged  += CollectionsViewOnSelectedCollectionChanged;
            _collectionsView.SelectedCollectionsChanged += CollectionsViewOnSelectedCollectionsChanged;
        }
        public CombinedListingPresenter(ICombinedListingView view, ICollectionListingModel collectionListingModel, IBeatmapListingModel beatmapListingModel, IWebCollectionProvider webCollectionProvider, IUserDialogs userDialogs)
        {
            _view            = view;
            _beatmapsView    = _view.beatmapListingView;
            _collectionsView = _view.CollectionListingView;

            _collectionListingModel = collectionListingModel;
            BeatmapListingModel     = beatmapListingModel;

            _webCollectionProvider = webCollectionProvider;
            _userDialogs           = userDialogs;
            new BeatmapListingPresenter(_beatmapsView, BeatmapListingModel);
            new CollectionListingPresenter(_collectionsView, collectionListingModel, userDialogs);

            BeatmapListingModel.SelectedBeatmapsChanged += BeatmapListingModelOnSelectedBeatmapsChanged;
            _collectionsView.SelectedCollectionChanged  += CollectionsViewOnSelectedCollectionChanged;
            _collectionsView.SelectedCollectionsChanged += CollectionsViewOnSelectedCollectionsChanged;
        }