public VideoDetailPage(VideoModel video,
                               IVideoDataStore favoritesDataStore,
                               IVideoDataStore downloadsDataStore)
        {
            InitializeComponent();
            var downloadFileController = new DownloadFileController();

            ViewModel = new VideoDetailPageViewModel(video,
                                                     favoritesDataStore,
                                                     downloadsDataStore,
                                                     downloadFileController);
            ViewModel.DownloadFailureMessage += ViewModel_DownloadFailureMessage;
        }
Ejemplo n.º 2
0
        public VideoDetailPage(VideoData video)
        {
            _baseViewModel            = new BaseViewModel();
            _videoDetailPageViewModel = new VideoDetailPageViewModel();
            userPlaylists             = new ObservableCollection <PlayList>();
            BackgroundColor           = Color.FromHex("#F1ECCE");

            videoUrl = video.files[0].link;
#if __ANDROID__
            Padding = new Thickness(5, 5, 5, 5);
#endif
#if __IOS__
            Padding = new Thickness(10, 30, 10, 10);
#endif

            Title          = video.name;
            videoTechnique = video;
            DoesUserHaveAccount();
            SetContent();
        }