Beispiel #1
0
        private void OnExportToSvgButtonClick(NEventArgs arg)
        {
            NSaveFileDialog exportToSvgDialog = new NSaveFileDialog();

            exportToSvgDialog.FileTypes = new NFileDialogFileType[] {
                new NFileDialogFileType("SVG Files", "svg")
            };
            exportToSvgDialog.Closed += OnExportToSvgDialogClosed;
            exportToSvgDialog.RequestShow();
        }
Beispiel #2
0
        private void OnExportToPdfButtonClick(NEventArgs arg)
        {
            NPdfTextFormat pdfFormat = new NPdfTextFormat();

            // Create and show a save file dialog
            NSaveFileDialog saveDialog = new NSaveFileDialog();

            saveDialog.Title           = "Export to PDF";
            saveDialog.DefaultFileName = "Document1.pdf";
            saveDialog.FileTypes       = new NFileDialogFileType[] {
                new NFileDialogFileType(pdfFormat)
            };

            saveDialog.Closed += OnSaveDialogClosed;
            saveDialog.RequestShow();
        }
Beispiel #3
0
        protected void OnSaveFileMenuItemClick(NEventArgs args)
        {
            NSaveFileDialog sfd = new NSaveFileDialog();

            sfd.FileTypes = new NFileDialogFileType[]
            {
                new NFileDialogFileType("Text Files", "txt"),
                new NFileDialogFileType("All Files", "*")
            };
            sfd.SelectedFilter   = 0;
            sfd.DefaultFileName  = "NevronTest";
            sfd.DefaultExtension = "txt";

            sfd.Closed += new Function <NSaveFileDialogResult>(OnSaveFileDialogClosed);
            sfd.RequestShow();
        }
        private void OnExportToEpubButtonClick(NEventArgs arg)
        {
            NEpubTextFormat epubFormat = new NEpubTextFormat();

            // Create and show a save file dialog
            NSaveFileDialog saveDialog = new NSaveFileDialog();

            saveDialog.Title           = "Export to EPUB";
            saveDialog.DefaultFileName = "MyBook.epub";
            saveDialog.FileTypes       = new NFileDialogFileType[] {
                new NFileDialogFileType(epubFormat)
            };

            saveDialog.Closed += OnSaveDialogClosed;
            saveDialog.RequestShow();
        }
Beispiel #5
0
        private void ShowSaveFileDialog()
        {
            NSaveFileDialog saveFileDialog = new NSaveFileDialog();

            saveFileDialog.FileTypes = new NFileDialogFileType[]
            {
                new NFileDialogFileType("Text Files", "txt"),
                new NFileDialogFileType("All Files", "*")
            };
            saveFileDialog.SelectedFilter   = 0;
            saveFileDialog.DefaultFileName  = "NevronTest";
            saveFileDialog.DefaultExtension = "txt";
            saveFileDialog.Title            = "Save File As";

            saveFileDialog.Closed += new Function <NSaveFileDialogResult>(OnSaveFileDialogClosed);
            saveFileDialog.RequestShow();
        }