예제 #1
0
        private async Task Loading()
        {
            var series = await _businessSerie.GetAll();

            foreach (var serie in series)
            {
                var s = new SerieViewModel();
                await s.Initialize(serie);

                Series.Add(s);
            }
        }
예제 #2
0
        private async void Loading()
        {
            foreach (string filepath in Files)
            {
                Fichiers.Add(new AddSingleComicViewModel(filepath));
            }
            var series = await _businessSerie.GetAll();

            foreach (var serie in series)
            {
                var s = new SerieViewModel();
                await s.Initialize(serie);

                Series.Add(s);
            }
        }
        private async void Loaded()
        {
            var ancestorID = await _businessSerie.FirstAncestor(Serie.Serie);

            var descendantId = await _businessSerie.GetAllDescendant(ancestorID);

            var allSerie = await _businessSerie.GetAll();

            var filteredseries = allSerie.Where(x => !descendantId.Contains(x.ID) && x.ID != Serie.Serie.ID && x.ID != ancestorID.ID).ToList();

            foreach (var serie in filteredseries)
            {
                var dsVM = new SerieViewModel();
                await dsVM.Initialize(serie);

                SeriesChoiceForFather.Add(dsVM);
            }
        }