Tanoda
IStandaloneFileBrowser.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
4namespace TriLibCore.SFB
5{
8 public interface IStandaloneFileBrowser<T>
9 {
16 IList<T> OpenFilePanel(string title, string directory, ExtensionFilter[] extensions, bool multiselect);
17
23 IList<T> OpenFolderPanel(string title, string directory, bool multiselect);
24
31 T SaveFilePanel(string title, string directory, string defaultName, ExtensionFilter[] extensions);
32
39 void OpenFilePanelAsync(string title, string directory, ExtensionFilter[] extensions, bool multiselect,
40 Action<IList<T>> cb);
41
47 void OpenFolderPanelAsync(string title, string directory, bool multiselect, Action<IList<T>> cb);
48
55 void SaveFilePanelAsync(string title, string directory, string defaultName, ExtensionFilter[] extensions,
56 Action<T> cb);
57 }
58}
Represents a series of methods to operate platform-specific file pickers.
void SaveFilePanelAsync(string title, string directory, string defaultName, ExtensionFilter[] extensions, Action< T > cb)
Opens the platform-specific file save panel Asynchronously.
IList< T > OpenFilePanel(string title, string directory, ExtensionFilter[] extensions, bool multiselect)
Opens the platform-specific file selection panel.
void OpenFilePanelAsync(string title, string directory, ExtensionFilter[] extensions, bool multiselect, Action< IList< T > > cb)
Opens the platform-specific file selection panel Asynchronously.
void OpenFolderPanelAsync(string title, string directory, bool multiselect, Action< IList< T > > cb)
Opens the platform-specific folder selection panel Asynchronously.
T SaveFilePanel(string title, string directory, string defaultName, ExtensionFilter[] extensions)
Opens the platform-specific file save panel.
IList< T > OpenFolderPanel(string title, string directory, bool multiselect)
Opens the platform-specific folder selection panel.
Represents a file picker extension filter.