protected void LinkButtonNext_Click(object sender, EventArgs e)
        {
            if (Change != null)
            {
                int mod = CurrentPageNumber % NumberOfPages;

                if (mod == 0)
                {
                    CurrentPageNumber = CurrentPageNumber + 1;
                }
                else
                {
                    mod = (NumberOfPages - mod) + 1;
                    CurrentPageNumber = CurrentPageNumber + mod;
                }

                var args = new PagerEventArgs
                {
                    First    = false,
                    Previous = false,
                    Next     = true,
                    Last     = false,
                    Number   = CurrentPageNumber,
                    PageSize = PageSize
                };
                Change(this, args);
            }
        }
 protected void LinkButtonNumber_Click(object sender, EventArgs e)
 {
     if (Change != null)
     {
         var number = Convert.ToInt32(((LinkButton)sender).Text);
         CurrentPageNumber = number;
         var args = new PagerEventArgs
         {
             First    = false,
             Previous = false,
             Next     = false,
             Last     = false,
             Number   = number,
             PageSize = PageSize
         };
         Change(this, args);
     }
 }