SetResult Method
Sets the result of the open file dialog. i.e. The path of a file to open.
Type: OpenFileDialogEventArgs
Namespace: XJTAG.Integration.XJRunner
Syntax
public void SetResult(string filePath)
Parameters
- filePath
Type: string
The path to a file on disk. This may be relative or absolute - if relative then it is taken relative to InitialDirectory.
Exceptions
- RuntimeException
The given path is invalid or the file does not exist.
Remarks
Calling this method causes the open file dialog to close and return the provided filename.
You can call SetResult synchronously inside the event handler, or preserve the supplied OpenFileDialogEventArgs reference and call SetResult later. The open file dialog will close when a user selects one of its buttons, or when SetResult is called, whichever happens first.
XJTAG v4.2.5
