Ejemplo n.º 1
0
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     SelectedEpisode.Watched = checkBox1.Checked;
     for (int i = 0; i < Library.Library.Count; i++)
     {
         for (int j = 0; j < Library.Library[i].Seasons.Count; j++)
         {
             for (int w = 0; w < Library.Library[i].Seasons[j].Episodes.Count; w++)
             {
                 if (Library.Library[i].Seasons[j].Episodes[w].EpisodePath.FullName.Equals(SelectedEpisode.EpisodePath.FullName))
                 {
                     Library.Library[i].Seasons[j].Episodes[w] = SelectedEpisode;
                 }
             }
         }
     }
     File.WriteAllText("library.json", Library.ExportToJson(true));
 }
Ejemplo n.º 2
0
        private void indexLibraryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AnimeIndexer indexer = new AnimeIndexer(Library);

            indexer.ShowDialog();
            if (indexer.IsOK)
            {
                Library = indexer.Library;
                File.WriteAllText("library.json", Library.ExportToJson(true));
                ReloadUI();
            }
        }