Exemplo n.º 1
0
 //Handles the click event of the bookmark button on the top toolbar
 private void BookmarkButton_TouchUpInside(object sender, EventArgs e)
 {
     if (bookmarkToolbar == null)
     {
         bookmarkToolbar = new BookmarkToolbar(this);
     }
     if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
     {
         if (bookmarkToolbar.Superview == null)
         {
             AddSubview(bookmarkToolbar);
         }
         else
         {
             bookmarkToolbar.RemoveFromSuperview();
         }
         isBookmarkPaneVisible = !isBookmarkPaneVisible;
         annotHelper.RemoveAllToolbars(false);
         pdfViewerControl.AnnotationMode = AnnotationMode.None;
         isAnnotationToolbarVisible      = false;
     }
     else
     {
         if (bookmarkToolbar.Superview == null)
         {
             AddSubview(bookmarkToolbar);
         }
         isBookmarkPaneVisible = true;
     }
 }
Exemplo n.º 2
0
 internal BookmarkListAdapter(Context context, BookmarkToolbar bookmarkToolbar, float density)
 {
     this.bookmarkToolbar = bookmarkToolbar;
     this.context         = context as Activity;
     this.density         = density;
     bookmarkList         = new List <CustomBookmark>();
     bookmarkFont         = bookmarkToolbar.bookmarkFont;
 }