private void buttonBrows1_Click(object sender, System.EventArgs e) { try { if (FilePath != String.Empty) { FileSelector.InitialPath = Path.GetDirectoryName(FilePath); } } catch { } string file = ForSave ? FileSelector.BrowseFileForSave(fileType) : FileSelector.BrowseFile(fileType); if (file != null) { FilePath = file; if (FilePathBrowsed != null) { FilePathBrowsed(sender, e); } } }
public static string BrowseFileForSave(string filter) { FileSelector.Filter = filter; return(FileSelector.BrowseFileForSave()); }
public static string BrowseFileForSave(FileType type) { FileSelector.FileExtension = type; return(FileSelector.BrowseFileForSave()); }
public static string[] BrowseFiles(string filter) { FileSelector.Filter = filter; return(FileSelector.BrowseFiles()); }
public static string[] BrowseFiles(FileType type) { FileSelector.FileExtension = type; return(FileSelector.BrowseFiles()); }