public void SaveMangaInfo() { MgiSave instance = new MgiSave { url = Url, name = _name, description = _description, image = ImageSource.ToByteArray(), isFavourite = _isFavourite, isCompleted = _isCompleted, authors = _authorList }; for (int i = 0; i < _genreList.Count; i++) { instance.genres.Add(_genreList[i].Text); } for (int i = 0; i < _chapterList.Count; i++) { instance.chapters.Add(_chapterList[i].Name); instance.chapterUrls.Add(_chapterList[i].URL); } SaveSystem.SaveBinary(instance, mangaSavePath); }
public void SetMangaPath() { mangaSavePath = MainView.Settings.mangaPath + Name + "/" + Name + ".mgi"; if (File.Exists(mangaSavePath)) { savedinfo = SaveSystem.LoadBinary <MgiSave>(mangaSavePath); } }
public async Task LoadMangaInfo(string path) { mangaSavePath = path; if (File.Exists(mangaSavePath)) { savedinfo = SaveSystem.LoadBinary <MgiSave>(mangaSavePath); ImportMangaInfo(); } }