protected override string ShowBrowseDialog(string name, string startIn) { var fd = new SelectFileDialog(name, Action); 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) { SelectFileDialog fd = new SelectFileDialog(name); if (start_in != null) { fd.InitialFileName = start_in; } fd.SetFilters(filterSet); fd.TransientFor = GetTransientFor(); if (fd.Run()) { return(fd.SelectedFile); } else { return(null); } }