예제 #1
0
        private void ShowAnnotationCollections()
        {
            try
            {
                List <Page> pageList = new List <Page>();

                for (int i = 0; i < (int)this.Document.PageCount; i++)
                {
                    Page page = BooksOnDeviceAccessor.GetPage(book.ID, (nint)i + 1);
                    if (page != null)
                    {
                        Annotation annotation = AnnotationsDataAccessor.GetAnnotation(book.ID, page.ID);
                        if (annotation != null)
                        {
                            pageList.Add(page);
                        }
                    }
                }

                ShowCollectionView(new NSString("AnnotationCell"), pageList);
            }
            catch (Exception ex)
            {
                Logger.WriteLineDebugging("PageViewController - ShowAnnotationCollections: {0}", ex.ToString());
            }
        }
 public static Annotation GetAnnotation(String bookID, String pageID)
 {
     return(AnnotationsDataAccessor.GetAnnotation(bookID, pageID));
 }