ClassOpenFileDialog
Class to handle open file dialog.
Definition
Namespace:ArtOfTest.WebAii.Win32.Dialogs
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class OpenFileDialog : BaseDialog, IDialog
Inheritance: objectBaseDialogOpenFileDialog
Implements:
Inherited Members
Constructors
OpenFileDialog(WpfApplication, DialogButton, string, string)
Create a new instance of OpenFileDialog class.
Declaration
protected OpenFileDialog(WpfApplication application, DialogButton dismissButton, string filePath, string title)
Parameters
application
dismissButton
filePath
title
Fields
_filePathToSet
the path of the file to open
_titleToCheckFor
The title of the dialog to check.
Properties
Methods
CreateOpenFileDialog(WpfApplication, DialogButton, string, string)
Returns an Open File Dialog for use with WPF applications.
Declaration
public static OpenFileDialog CreateOpenFileDialog(WpfApplication application, DialogButton dismissButton, string filePath, string title = null)
Parameters
application
The host application.
dismissButton
The dismiss button to use. Accepts OPEN or CANCEL.
filePath
The location of the file to open.
title
The title of the dialog. Pass null to use default value or overwrite it in case of custom dialog.
Returns
A new OpenFileDialog.
IsDialogActive(WindowCollection)
Is dialog active.
Declaration
public override bool IsDialogActive(WindowCollection dialogs)
Parameters
dialogs
The list of dialogs
Returns
True/False whether the dialog is active or not.
Overrides