Ejemplo n.º 1
0
        public void OpenFileDialogSplitPdf(TextBox sender)
        {
            this.fileList = new string[] { DirectoryDataFactory.GetFilePathFromDialog(KindOfFileEnum.Pdf) };

            if (string.IsNullOrEmpty(this.fileList[0]))
            {
                MessageBox.Show("Error: please input correct .pdf file");
                return;
            }

            this.txtBoxEventHandler?.Invoke(sender, Path.GetDirectoryName(this.fileList[0]));
        }
Ejemplo n.º 2
0
 internal void OpenFileDialogXslt(TextBox sender)
 {
     this.fileXslt = DirectoryDataFactory.GetFilePathFromDialog(KindOfFileEnum.Xslt);
     if (string.IsNullOrEmpty(fileXslt))
     {
         return;
     }
     else
     {
         MessageBox.Show($"Files found: {fileXslt}");
     }
     this.txtBoxEventHandler(sender, Path.GetDirectoryName(fileXslt));
 }