private void OnNextPageCommand(object obj)
 {
     if (CurrentPageNumber != LargestPageNumber)
     {
         CurrentPageNumber = (Convert.ToInt32(CurrentPageNumber) + 1).ToString();
     }
     Messager.CurrentPageBroadCast(CurrentPageNumber);
 }
 private void OnPreviousPageCommand(object obj)
 {
     if (CurrentPageNumber != "1")
     {
         CurrentPageNumber = (Convert.ToInt32(CurrentPageNumber) - 1).ToString();
     }
     Messager.CurrentPageBroadCast(CurrentPageNumber);
 }
 private void OnGoToPageCommand(TextBox currentTextBox)
 {
     try
     {
         if (Convert.ToInt32(currentTextBox.Text) >= 1 && Convert.ToInt32(currentTextBox.Text) <= Convert.ToInt32(LargestPageNumber))
         {
             CurrentPageNumber = currentTextBox.Text;
             Messager.CurrentPageTransmitted(CurrentPageNumber);
         }
     }
     catch { }
     Messager.CurrentPageBroadCast(CurrentPageNumber);
 }
 private void OnFirstPageCommand(object obj)
 {
     CurrentPageNumber = 1.ToString();
     Messager.CurrentPageBroadCast(CurrentPageNumber);
 }