Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
 public static string BrowseFileForSave(string filter)
 {
     FileSelector.Filter = filter;
     return(FileSelector.BrowseFileForSave());
 }
Exemplo n.º 3
0
 public static string BrowseFileForSave(FileType type)
 {
     FileSelector.FileExtension = type;
     return(FileSelector.BrowseFileForSave());
 }
Exemplo n.º 4
0
 public static string[] BrowseFiles(string filter)
 {
     FileSelector.Filter = filter;
     return(FileSelector.BrowseFiles());
 }
Exemplo n.º 5
0
 public static string[] BrowseFiles(FileType type)
 {
     FileSelector.FileExtension = type;
     return(FileSelector.BrowseFiles());
 }