Ejemplo n.º 1
0
 // Cancel Drag
 private void CancelDrag()
 {
     if (pBook.GetBookState() != PBook.BookState.OPEN && pBook.GetBookState() != PBook.BookState.CLOSED)
     {
         if (dragstate == DragState.OPENDRAG || dragstate == DragState.CLOSEDRAG)
         {
             pBook.CancelDragOpenCloseBook();
             dragstate = DragState.NODRAG;
         }
         else if (dragstate == DragState.NEXTDRAG || dragstate == DragState.PREVDRAG)
         {
             pBook.CancelDragNextPrevPage();
             dragstate = DragState.NODRAG;
         }
     }
 }