FileDialog
Description
A class for a windows FileDialog to open or save files.
FileDialog Class
Namespace: Progile.TRIO.EnvironmentModel Assembly: Progile.TRIO.EnvironmentModel.Windows (in Progile.TRIO.EnvironmentModel.Windows.dll)
Inheritance Hierarchy:
Object Progile.TRIO.BaseModel.OnScreenElement Progile.TRIO.BaseModel.BaseScreen Progile.TRIO.EnvironmentModel.Window Progile.TRIO.EnvironmentModel.FileWindow
Constructors
Syntax:
Parameter
Description
t
The tester interface.
systemHelper
An instance of the ISystemHelpers interface that allows interaction with the SUT operating system.
Methods
Name
Description
Cancels the file dialog.
Opens the selected file or the file from the input path. Returns true if successful, false if a warning is shown. Warning will be confirmed, fileDialog will stay open.
Saves to the selected file or the file from the input path. Returns true if successful, false if a warning is shown. Warning will be confirmed, fileDialog will stay open.
Sets the file name and/or path to the parameter fileNameWithPath
Properties
Name
Description
The text box to enter the file name (in currently shown folder) or full file path (for any other folder).
The dropown below the FileName to select the file type as which the file shall be saved. Note: Currently not supported for Win7 and Win8.
The text box to enter the path for the folder to be shown. Note: Currently not supported for Win7. Use FileName instead.
A label referring to any warning dialog that might be shown after saving or opening.
Last updated