Esempio n. 1
0
        public void OpenFile()
        {
            SyncContext.Post(
                _ =>
            {
                if (OpenFileSemaphore.Wait(0) == false)
                {
                    return;
                }

                if (PdfWindow == null)
                {
                    CreatePdfWindow(null);
                }

                string filePath = PdfWindow.OpenFileDialog();

                if (filePath != null)
                {
                    PDFElement.Create(filePath);
                }

                OpenFileSemaphore.Release();
            },
                null
                );
        }
        public void OpenFile()
        {
            SyncContext.Post(
                _ =>
            {
                if (PdfWindow == null)
                {
                    CreatePdfWindow(null);
                }

                string filePath = PdfWindow.OpenFileDialog();

                if (filePath != null)
                {
                    PDFElement.Create(filePath);
                }
            },
                null
                );
        }