Esempio n. 1
0
 public MangaFomSource(Manga owner,MangaData mangaData)
 {
     Owner = owner;
     _Chapters = new ObservableCollection<ChapterFromSource>();
     Chapters = new ReadOnlyObservableCollection<ChapterFromSource>(_Chapters);
     Name = mangaData.Name;
     Source = mangaData.DetailMangaSource;
     foreach (var chapterData in mangaData.ChaptersData)
     {
         _Chapters.Add(new ChapterFromSource(this,chapterData));
     }
 }
Esempio n. 2
0
 public void Add(String Name, MangaData mangaData)
 {
     Manga manga = (from m in _Mangas where m.Name == Name select m).FirstOrDefault<Manga>();
     if (manga == null)
     {
         manga = new Manga(cmpt,this, Name);
         cmpt++;
         _Mangas.Add(manga);
     }
     manga.Add(mangaData);
 }