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