예제 #1
0
 public void SetPageInformation(int index, bool bVer, OnDragToPage handle0, OnUpdateDragPos handle1)
 {
     if (mPageContro != null && mPageIndex == -1)
     {
         mPageContro.TurnToPage            += this.OnTurnToPage;
         mPageContro.ImmediatelyTurnToPage += this.OnImmediatelyTurnToPage;
     }
     mPageIndex    = index;
     bVertical     = bVer;
     DragToPage    = handle0;
     UpdateDragPos = handle1;
     SetEdge();
 }
예제 #2
0
 /// <summary>
 /// this function be Used to the Instantiated page.
 /// </summary>
 public void SetPageInformation(int index, UIPageControllerEx contro, bool bVer, int perPageSize, int totlePage, OnDragToPage handle0, OnUpdateDragPos handle1)
 {
     mPageContro = contro;
     if (bVer)
     {
         pageYLength = perPageSize;
     }
     else
     {
         pageXLength = perPageSize;
     }
     pageCount = totlePage;
     SetPageInformation(index, bVer, handle0, handle1);
 }