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

Inheritance: IFileDialogService
Afficher le fichier Open project: jbe2277/waf Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Clears the last remembered dialog.
public Clear ( ) : void
Résultat void

ShowOpenFileDialog() public méthode

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.
Résultat System.Waf.Applications.Services.FileDialogResult

ShowSaveFileDialog() public méthode

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.
Résultat System.Waf.Applications.Services.FileDialogResult