コード例 #1
0
        // CTOR
        public MediaContentViewModel(
            INavigationService navigationService,
            IPlaylistDataService playlistDataService,
            ISharingService sharingService,
            ISettingsDataService settingsDataService,
            IPresentationDataService presentationDataService,
            ICategoryContentDataService categoryContentDataService,
            IDocumentInfoDataService documentInfoDataService,
            ICategoryDataService categoryDataService,
            IContentReviewDataService contentReviewDataService) : base(settingsDataService)
        {
            _presentationDataService    = presentationDataService;
            _navigationService          = navigationService;
            _playlistDataService        = playlistDataService;
            _sharingService             = sharingService;
            _contentReviewDataService   = contentReviewDataService;
            _categoryContentDataService = categoryContentDataService;
            _documentInfoDataService    = documentInfoDataService;
            _categoryDataService        = categoryDataService;


            // Create an empty list to work from
            _relatedContent = new List <MediaLink>();

            // Create the flyout
            _relatedContentFlyout = new RelatedContentFlyout();

            // Setup the messages
            RegisterMessages();
        }
コード例 #2
0
 public PresentationDataService(
     ISharingService sharingService,
     IContentReviewDataService contentReviewDataService,
     IEventDataService eventDataService)
 {
     _sharingService           = sharingService;
     _contentReviewDataService = contentReviewDataService;
     _eventDataService         = eventDataService;
 }