protected override string ShowBrowseDialog(string name, string startIn) { var fd = new SelectFolderDialog(name); if (startIn != null) { fd.CurrentFolder = startIn; } fd.SetFilters(FileFilters); fd.TransientFor = GetTransientFor(); if (fd.Run()) { return(fd.SelectedFile); } return(null); }
protected override string ShowBrowseDialog(string name, string start_in) { SelectFolderDialog fd = new SelectFolderDialog(name); if (start_in != null) { fd.InitialFileName = start_in; } fd.SetFilters(filterSet); fd.TransientFor = GetTransientFor(); if (fd.Run()) { return(fd.SelectedFile); } else { return(null); } }