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(); }
public int GetCurrentPageNumber() { if (IsReadingComic) { return(comicReader.GetCurrentPageNumber()); } else { throw new NoComicOpenedException("User has not yet opened a comic book."); } }