Exemplo n.º 1
0
        // Factory Methods
        public static FolderBrowserDialogEx PrinterBrowser()
        {
            FolderBrowserDialogEx x = new FolderBrowserDialogEx();

            // avoid MBRO comppiler warning when passing _rootFolderLocation as a ref:
            x.BecomePrinterBrowser();
            return(x);
        }
Exemplo n.º 2
0
        private void btnSelectFolder_Click(object sender, RoutedEventArgs e)
        {
            string _folderName = IndexDirectory;

            var dlg1 = new FolderBrowserDialogEx
            {
                Description = "Select a folder for the extracted files:",
                ShowNewFolderButton = false,
                ShowEditBox = true,
                SelectedPath = _folderName,
                ShowFullPathInEditBox = false,
            };
            dlg1.RootFolder = System.Environment.SpecialFolder.MyComputer;
            System.Windows.Forms.DialogResult result = dlg1.ShowDialog();
            if (result == System.Windows.Forms.DialogResult.OK)
            {
                SetIndexDirectory(dlg1.SelectedPath);
            }
        }
Exemplo n.º 3
0
 // Factory Methods
 public static FolderBrowserDialogEx PrinterBrowser()
 {
     FolderBrowserDialogEx x = new FolderBrowserDialogEx();
     // avoid MBRO comppiler warning when passing _rootFolderLocation as a ref:
     x.BecomePrinterBrowser();
     return x;
 }