Advertisement
Guest User

CurrentPageChangedEventArgs

a guest
Mar 14th, 2011
2,945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.15 KB | None | 0 0
  1. namespace Utility
  2. {
  3.     using System;
  4.  
  5.     /// <summary>
  6.     /// Provides context for the <see cref="PagingController.CurrentPageChanged"/> event.
  7.     /// </summary>
  8.     public class CurrentPageChangedEventArgs : EventArgs
  9.     {
  10.         /// <summary>
  11.         /// Initializes a new instance of the <see cref="CurrentPageChangedEventArgs"/> class.
  12.         /// </summary>
  13.         /// <param name="startIndex">The index of the first item in the current page..</param>
  14.         /// <param name="itemCount">The count of items in the current page.</param>
  15.         public CurrentPageChangedEventArgs(int startIndex, int itemCount)
  16.         {
  17.             this.StartIndex = startIndex;
  18.             this.ItemCount = itemCount;
  19.         }
  20.  
  21.         /// <summary>
  22.         /// Gets the index of the first item in the current page.
  23.         /// </summary>
  24.         /// <value>The index of the first item.</value>
  25.         public int StartIndex { get; private set; }
  26.  
  27.         /// <summary>
  28.         /// Gets the count of items in the current page.
  29.         /// </summary>
  30.         /// <value>The item count.</value>
  31.         public int ItemCount { get; private set; }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement