コード例 #1
0
        public VideoPlayerPageViewModel(IAppService appService, IAppDataStorage appDataStorage, IAnimeApiService animeService, ISeasonApiService seasonService) : base(appService)
        {
            SelectAnimeCommand  = new DelegateCommand <Anime>((anime) => Anime = anime);
            SelectSeasonCommand = new DelegateCommand <Season>(async(season) => {
                await PopupNavigation.PushAsync(new SeasonPage(season));
            });

            VideoInfoProperties.AddRange(new List <InfoProperty>()
            {
                new InfoProperty()
                {
                    PropertyName  = "Đạo diễn",
                    PropertyValue = "Takuji Suzuki, Shinobu Yaguchi"
                },
                new InfoProperty()
                {
                    PropertyName  = "Biên tập",
                    PropertyValue = "Takuji Suzuki, Shinobu Yaguchi"
                },
                new InfoProperty()
                {
                    PropertyName  = "Diễn viên",
                    PropertyValue = " Travis Mullenix, Satoru Jitsunashi, Jason C. Kane, Masumi Kuichi, Nao Nekota, Yôji Tanaka"
                },
                new InfoProperty()
                {
                    PropertyName  = "Quay phim",
                    PropertyValue = "Shinobu Yaguchi	"
                },
                new InfoProperty()
                {
                    PropertyName  = "Biên tập phim",
                    PropertyValue = "Shinobu Yaguchi	"
                },
                new InfoProperty()
                {
                    PropertyName  = "Âm thanh",
                    PropertyValue = "Joseph Shalack"
                },
                new InfoProperty()
                {
                    PropertyName  = "Lòng tiếng",
                    PropertyValue = "Chuck Powers"
                }
            });
            _seasonService  = seasonService;
            _animeService   = animeService;
            _appDataStorage = appDataStorage;
        }
コード例 #2
0
 public PersonalPageViewModel(IAppService appService, IAppDataStorage appDataStorage) : base(appService)
 {
     _appDataStorage    = appDataStorage;
     SelectAnimeCommand = new DelegateCommand <Anime>(async(anime) => await ExecuteSelectAnimeCommandAsync(anime));
     SelectMangaCommand = new DelegateCommand <Manga>(async(manga) => await ExecuteSelectMangaCommandAsync(manga));
 }
コード例 #3
0
 public MainBoundContext(IAppDataStorage appDataStorage) : base("LocalDbContext")
 {
     this.AppDataStorage = appDataStorage;
     this.InitializeDatabase();
 }