Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void SetMangaPath()
 {
     mangaSavePath = MainView.Settings.mangaPath + Name + "/" + Name + ".mgi";
     if (File.Exists(mangaSavePath))
     {
         savedinfo = SaveSystem.LoadBinary <MgiSave>(mangaSavePath);
     }
 }
Ejemplo n.º 3
0
 public async Task LoadMangaInfo(string path)
 {
     mangaSavePath = path;
     if (File.Exists(mangaSavePath))
     {
         savedinfo = SaveSystem.LoadBinary <MgiSave>(mangaSavePath);
         ImportMangaInfo();
     }
 }