Example #1
0
        private void LibraryCatalogOverviewControl_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
        {
            LibraryCatalogControl lcc = GUITools.GetParentControl <LibraryCatalogControl>(this);

            if (null != lcc)
            {
                List <PDFDocument> selected_pdf_documents = lcc.SelectedPDFDocuments;

                LibraryCatalogPopup popup = new LibraryCatalogPopup(selected_pdf_documents);
                popup.Open();
            }

            e.Handled = true;
        }
        public static void TestHarness()
        {
            Library library = Library.GuestInstance;

            while (!library.LibraryIsLoaded)
            {
                Thread.Sleep(1000);
            }
            LibraryCatalogControl lcc = new LibraryCatalogControl();

            lcc.Library = library;


            ControlHostingWindow window = new ControlHostingWindow("Fast library control", lcc);

            window.Show();
        }
Example #3
0
        private object GetDocumentDragData()
        {
            LibraryCatalogControl lcc = GUITools.GetParentControl <LibraryCatalogControl>(this);

            if (null != lcc)
            {
                List <PDFDocument> selected_pdf_documents = lcc.SelectedPDFDocuments;
                if (!selected_pdf_documents.Contains(PDFDocumentBindable.Underlying))
                {
                    selected_pdf_documents.Add(PDFDocumentBindable.Underlying);
                }

                return(selected_pdf_documents);
            }
            else
            {
                return(new List <PDFDocument>());
            }
        }