public static FolderBrowserDialogEx ComputerBrowser() { FolderBrowserDialogEx x = new FolderBrowserDialogEx(); // avoid MBRO comppiler warning when passing _rootFolderLocation as a ref: x.BecomeComputerBrowser(); return(x); }
public static FolderBrowserDialogEx PrinterBrowser() { FolderBrowserDialogEx x = new FolderBrowserDialogEx(); // avoid MBRO comppiler warning when passing _rootFolderLocation as a ref: x.BecomePrinterBrowser(); return x; }
private void miaddtoproj_Click(object sender, EventArgs e) { using (var browser = new FolderBrowserDialogEx()) { browser.ShowEditBox = true; browser.ShowFullPathInEditBox = true; if (browser.ShowDialog() == DialogResult.OK) { var proj = new YnoteProject(); proj.Path = browser.SelectedPath; OpenProject(proj); } } }