C# Class System.Waf.UnitTesting.Mocks.MockFileDialogService

Inheritance: IFileDialogService
显示文件 Open project: jbe2277/waf Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clears the last remembered dialog.

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.

Method Details

Clear() public method

Clears the last remembered dialog.
public Clear ( ) : void
return void

ShowOpenFileDialog() public method

Shows the open file dialog box that allows a user to specify a file that should be opened.
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 System.Waf.Applications.Services.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.
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 System.Waf.Applications.Services.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