Exemple #1
0
 private void btnGoToPrevious_Click(object sender, EventArgs e)
 {
     comReader.PreviousPage();
     picBxComicScreen.Image.Dispose();
     picBxComicScreen.Image = comReader.GetCurrentPage();
     lblPageNumber.Text     = "Page " + comReader.GetCurrentPageNumber() + " of " + comReader.GetPageCount().ToString();
     PageChanged();
 }
Exemple #2
0
 public int GetCurrentPageNumber()
 {
     if (IsReadingComic)
     {
         return(comicReader.GetCurrentPageNumber());
     }
     else
     {
         throw new NoComicOpenedException("User has not yet opened a comic book.");
     }
 }