C# Class System.Waf.Applications.Services.FileDialogServiceExtensions

Provides method overloads for the IFileDialogService to simplify its usage.
显示文件 Open project: jbe2277/waf

Public Methods

Method Description
ShowOpenFileDialog ( this service, FileType fileType ) : System.Waf.Applications.Services.FileDialogResult

Shows the open file dialog box that allows a user to specify a file that should be opened.

ShowOpenFileDialog ( this service, FileType fileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult

Shows the open file dialog box that allows a user to specify a file that should be opened.

ShowOpenFileDialog ( this service, IEnumerable fileTypes ) : System.Waf.Applications.Services.FileDialogResult

Shows the open file dialog box that allows a user to specify a file that should be opened.

ShowOpenFileDialog ( this service, IEnumerable fileTypes, FileType defaultFileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult

Shows the open file dialog box that allows a user to specify a file that should be opened.

ShowOpenFileDialog ( this service, object owner, FileType fileType ) : System.Waf.Applications.Services.FileDialogResult

Shows the open file dialog box that allows a user to specify a file that should be opened.

ShowOpenFileDialog ( this service, object owner, FileType fileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult

Shows the open file dialog box that allows a user to specify a file that should be opened.

ShowOpenFileDialog ( this service, object owner, IEnumerable fileTypes ) : System.Waf.Applications.Services.FileDialogResult

Shows the open file dialog box that allows a user to specify a file that should be opened.

ShowSaveFileDialog ( this service, FileType fileType ) : System.Waf.Applications.Services.FileDialogResult

Shows the save file dialog box that allows a user to specify a filename to save a file as.

ShowSaveFileDialog ( this service, FileType fileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult

Shows the save file dialog box that allows a user to specify a filename to save a file as.

ShowSaveFileDialog ( this service, IEnumerable fileTypes ) : System.Waf.Applications.Services.FileDialogResult

Shows the save file dialog box that allows a user to specify a filename to save a file as.

ShowSaveFileDialog ( this service, IEnumerable fileTypes, FileType defaultFileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult

Shows the save file dialog box that allows a user to specify a filename to save a file as.

ShowSaveFileDialog ( this service, object owner, FileType fileType ) : System.Waf.Applications.Services.FileDialogResult

Shows the save file dialog box that allows a user to specify a filename to save a file as.

ShowSaveFileDialog ( this service, object owner, FileType fileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult

Shows the save file dialog box that allows a user to specify a filename to save a file as.

ShowSaveFileDialog ( this service, object owner, IEnumerable fileTypes ) : System.Waf.Applications.Services.FileDialogResult

Shows the save file dialog box that allows a user to specify a filename to save a file as.

Method Details

ShowOpenFileDialog() public static method

Shows the open file dialog box that allows a user to specify a file that should be opened.
service must not be null. fileType must not be null.
public static ShowOpenFileDialog ( this service, FileType fileType ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
fileType FileType The supported file type.
return System.Waf.Applications.Services.FileDialogResult

ShowOpenFileDialog() public static method

Shows the open file dialog box that allows a user to specify a file that should be opened.
service must not be null. fileType must not be null.
public static ShowOpenFileDialog ( this service, FileType fileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
fileType FileType The supported file type.
defaultFileName string Default filename. The directory name is used as initial directory when it is specified.
return System.Waf.Applications.Services.FileDialogResult

ShowOpenFileDialog() public static method

Shows the open file dialog box that allows a user to specify a file that should be opened.
service must not be null. fileTypes must not be null. fileTypes must contain at least one item.
public static ShowOpenFileDialog ( this service, IEnumerable fileTypes ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
fileTypes IEnumerable The supported file types.
return System.Waf.Applications.Services.FileDialogResult

ShowOpenFileDialog() public static method

Shows the open file dialog box that allows a user to specify a file that should be opened.
service must not be null. fileTypes must not be null. fileTypes must contain at least one item.
public static ShowOpenFileDialog ( this service, IEnumerable fileTypes, FileType defaultFileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
fileTypes IEnumerable The supported file types.
defaultFileType FileType Default file type.
defaultFileName string Default filename. The directory name is used as initial directory when it is specified.
return System.Waf.Applications.Services.FileDialogResult

ShowOpenFileDialog() public static method

Shows the open file dialog box that allows a user to specify a file that should be opened.
service must not be null. fileType must not be null.
public static ShowOpenFileDialog ( this service, object owner, FileType fileType ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
owner object The window that owns this OpenFileDialog.
fileType FileType The supported file type.
return System.Waf.Applications.Services.FileDialogResult

ShowOpenFileDialog() public static method

Shows the open file dialog box that allows a user to specify a file that should be opened.
service must not be null. fileType must not be null.
public static ShowOpenFileDialog ( this service, object owner, FileType fileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
owner object The window that owns this OpenFileDialog.
fileType FileType The supported file type.
defaultFileName string Default filename. The directory name is used as initial directory when it is specified.
return System.Waf.Applications.Services.FileDialogResult

ShowOpenFileDialog() public static method

Shows the open file dialog box that allows a user to specify a file that should be opened.
service must not be null. fileTypes must not be null. fileTypes must contain at least one item.
public static ShowOpenFileDialog ( this service, object owner, IEnumerable fileTypes ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
owner object The window that owns this OpenFileDialog.
fileTypes IEnumerable The supported file types.
return System.Waf.Applications.Services.FileDialogResult

ShowSaveFileDialog() public static method

Shows the save file dialog box that allows a user to specify a filename to save a file as.
service must not be null. fileType must not be null.
public static ShowSaveFileDialog ( this service, FileType fileType ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
fileType FileType The supported file type.
return System.Waf.Applications.Services.FileDialogResult

ShowSaveFileDialog() public static method

Shows the save file dialog box that allows a user to specify a filename to save a file as.
service must not be null. fileType must not be null.
public static ShowSaveFileDialog ( this service, FileType fileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
fileType FileType The supported file type.
defaultFileName string Default filename. The directory name is used as initial directory when it is specified.
return System.Waf.Applications.Services.FileDialogResult

ShowSaveFileDialog() public static method

Shows the save file dialog box that allows a user to specify a filename to save a file as.
service must not be null. fileTypes must not be null. fileTypes must contain at least one item.
public static ShowSaveFileDialog ( this service, IEnumerable fileTypes ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
fileTypes IEnumerable The supported file types.
return System.Waf.Applications.Services.FileDialogResult

ShowSaveFileDialog() public static method

Shows the save file dialog box that allows a user to specify a filename to save a file as.
service must not be null. fileTypes must not be null. fileTypes must contain at least one item.
public static ShowSaveFileDialog ( this service, IEnumerable fileTypes, FileType defaultFileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
fileTypes IEnumerable The supported file types.
defaultFileType FileType Default file type.
defaultFileName string Default filename. The directory name is used as initial directory when it is specified.
return System.Waf.Applications.Services.FileDialogResult

ShowSaveFileDialog() public static method

Shows the save file dialog box that allows a user to specify a filename to save a file as.
service must not be null. fileType must not be null.
public static ShowSaveFileDialog ( this service, object owner, FileType fileType ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
owner object The window that owns this SaveFileDialog.
fileType FileType The supported file type.
return System.Waf.Applications.Services.FileDialogResult

ShowSaveFileDialog() public static method

Shows the save file dialog box that allows a user to specify a filename to save a file as.
service must not be null. fileType must not be null.
public static ShowSaveFileDialog ( this service, object owner, FileType fileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
owner object The window that owns this SaveFileDialog.
fileType FileType The supported file type.
defaultFileName string Default filename. The directory name is used as initial directory when it is specified.
return System.Waf.Applications.Services.FileDialogResult

ShowSaveFileDialog() public static method

Shows the save file dialog box that allows a user to specify a filename to save a file as.
service must not be null. fileTypes must not be null. fileTypes must contain at least one item.
public static ShowSaveFileDialog ( this service, object owner, IEnumerable fileTypes ) : System.Waf.Applications.Services.FileDialogResult
service this The file dialog service.
owner object The window that owns this SaveFileDialog.
fileTypes IEnumerable The supported file types.
return System.Waf.Applications.Services.FileDialogResult