private void AddButton_Click(object sender, EventArgs e) { FolderBrowserDialogEx fbd = new FolderBrowserDialogEx(); fbd.ShowEditBox = true; fbd.Description = Kernel.Instance.GetString("SelectFolderSet"); DialogResult res = fbd.ShowDialog(); if (res == DialogResult.OK) { Folders.Add(fbd.SelectedPath); UpdateFolderList(); } }
// Factory Methods public static FolderBrowserDialogEx PrinterBrowser() { FolderBrowserDialogEx x = new FolderBrowserDialogEx(); // avoid MBRO comppiler warning when passing _rootFolderLocation as a ref: x.BecomePrinterBrowser(); return x; }