OTX-Runtime for DotNet  
OpenTestSystem.Otx.Runtime.Api.Custom.ICommonDialogsImplementation Interface Reference

Allows users to implement their own common Dialogs, consisting of FileOpenDialog, FileSaveDialog, and SelectDirectoryDialog. More...

Public Member Functions

List< string > FileOpenDialog (string title, string message, string initialPath, string extensions, bool allowMultiSelect, bool checkFileExists)
 Invoked when a FileOpenDialog occurs in OTX-Runtime. More...
 
string FileSaveDialog (string title, string message, string initialPath, string extensions, bool checkFileExist)
 Invoked when an FileSaveDialog occurs in OTX-Runtime. More...
 
string SelectDirectoryDialog (string title, string message, string initialPath)
 Invoked when a SelectDirectoryDialog occurs in OTX-Runtime. More...
 

Detailed Description

Allows users to implement their own common Dialogs, consisting of FileOpenDialog, FileSaveDialog, and SelectDirectoryDialog.

Member Function Documentation

◆ FileOpenDialog()

List<string> OpenTestSystem.Otx.Runtime.Api.Custom.ICommonDialogsImplementation.FileOpenDialog ( string  title,
string  message,
string  initialPath,
string  extensions,
bool  allowMultiSelect,
bool  checkFileExists 
)

Invoked when a FileOpenDialog occurs in OTX-Runtime.

Parameters
titleThe title to be displayed in the dialog
messageThe message to be displayed in the dialog to aid the user in their selection
initialPathThe initial path to select
extensionsThe optional (comma separated) list of extensions to filter in this dialog
allowMultiSelectThe optional flag to determine if the dialog will allow the user to select more than one file
checkFileExistsThe optional flag to determine if the dialog must check for the file before allowing the user to complete
Returns
Selection from the user will be sent to OTX-Runtime.

◆ FileSaveDialog()

string OpenTestSystem.Otx.Runtime.Api.Custom.ICommonDialogsImplementation.FileSaveDialog ( string  title,
string  message,
string  initialPath,
string  extensions,
bool  checkFileExist 
)

Invoked when an FileSaveDialog occurs in OTX-Runtime.

Parameters
titleThe title to be displayed in the dialog
messageThe message to be displayed in the dialog to aid the user in their selection
initialPathThe initial path to select
extensionsThe optional (comma separated) list of extensions to filter in this dialog
checkFileExistThe optional flag to determine if the dialog must check for the file before allowing the user to complete
Returns
Returned value will be sent to OTX-Runtime.

◆ SelectDirectoryDialog()

string OpenTestSystem.Otx.Runtime.Api.Custom.ICommonDialogsImplementation.SelectDirectoryDialog ( string  title,
string  message,
string  initialPath 
)

Invoked when a SelectDirectoryDialog occurs in OTX-Runtime.

Parameters
titleThe title to be displayed in the dialog
messageThe message to be displayed in the dialog to aid the user in their selection
initialPathThe initial path to select
Returns
Selection from the user will be sent to OTX-Runtime.

The documentation for this interface was generated from the following file: