C# Class System.Waf.Presentation.Services.FileDialogService

Inheritance: IFileDialogService
ファイルを表示 Open project: jbe2277/waf

Public Methods

Method Description
ShowOpenFileDialog ( object owner, 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.

ShowSaveFileDialog ( object owner, 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.

Private Methods

Method Description
CreateFilter ( IEnumerable fileTypes ) : string
ShowFileDialog ( object owner, Microsoft.Win32.FileDialog dialog, IEnumerable fileTypes, FileType defaultFileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult

Method Details

ShowOpenFileDialog() public method

Shows the open file dialog box that allows a user to specify a file that should be opened.
fileTypes must not be null. fileTypes must contain at least one item.
public ShowOpenFileDialog ( object owner, IEnumerable fileTypes, FileType defaultFileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult
owner object The window that owns this OpenFileDialog.
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 method

Shows the save file dialog box that allows a user to specify a filename to save a file as.
fileTypes must not be null. fileTypes must contain at least one item.
public ShowSaveFileDialog ( object owner, IEnumerable fileTypes, FileType defaultFileType, string defaultFileName ) : System.Waf.Applications.Services.FileDialogResult
owner object The window that owns this SaveFileDialog.
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