IStandaloneFileBrowser.cs 768 B

12345678910111213
  1. using System;
  2. namespace SFB {
  3. public interface IStandaloneFileBrowser {
  4. string[] OpenFilePanel(string title, string directory, ExtensionFilter[] extensions, bool multiselect);
  5. string[] OpenFolderPanel(string title, string directory, bool multiselect);
  6. string SaveFilePanel(string title, string directory, string defaultName, ExtensionFilter[] extensions);
  7. void OpenFilePanelAsync(string title, string directory, ExtensionFilter[] extensions, bool multiselect, Action<string[]> cb);
  8. void OpenFolderPanelAsync(string title, string directory, bool multiselect, Action<string[]> cb);
  9. void SaveFilePanelAsync(string title, string directory, string defaultName, ExtensionFilter[] extensions, Action<string> cb);
  10. }
  11. }