Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Wisej.Web.ColorDialog
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.
Initializes a new instance of ColorDialog.
Initializes a new instance of the ColorDialog extender with a specified container.
container
Color: Returns or sets the color selected by the user. (Default: Color [Empty]
)
Color[]: Returns or sets the set of custom colors shown in the dialog box. (Default: null
)
Returns: Form.
Resets all properties to their default values.
An that represents the container of the component.
Wisej.Web.CommonDialog
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Specifies the base class used for displaying dialog boxes on the screen.
Initializes a new instance of CommonDialog.
Initializes a new instance of the CommonDialog extender with a specified container.
container
Type: Returns or sets the type of the common dialog UI control to show when calling the ShowDialog method. (Default: null
)
Object: Returns or sets an object that contains data about the control. (Default: null
)
String: Returns or sets the dialog box title. (Default: ""
)
FormWindowState: Returns or sets the initial WindowState of the common dialog. (Default: Normal
)
Creates the UI for the CommonDialog.
Returns: Form. An instance of Form.
disposing
Fires the HelpRequested event.
e
When overridden in a derived class, resets the properties of a common dialog box to their default values.
Runs a common dialog box with a default owner.
Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.
Runs a common dialog box with a default owner.
Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.
Runs a common dialog box with the specified owner.
owner
Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.
Runs a common dialog box with the specified owner.
owner
Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.
Runs a common dialog box with the specified owner asynchronously.
Returns: Task<DialogResult>. OK if the user clicks OK in the dialog box; otherwise, Cancel.
EventHandler Fired when the user clicks the Help button on a common dialog box.
Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.
Displays a dialog box from which the user can select a file.
Prompts the user to open a file from the server.
Prompts the user to select a location for saving a file on the server.
Wisej.Web.FileDialogLoadPathEventHandler
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents the method that will handle the LoadPath event.
sender
The source of the event.
e
A that contains the event data.
Fired when the file dialog is loading a file or folder.
Fired when the file dialog is loading a file or folder.
Wisej.Web.FileDialogLoadPathEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Provides data for the LoadPath event.
Allows an application to filter the files and folders loaded by the and components and to set the icon, creation date and modified date. To skip a file or folder, set e.Cancel = true. To set a file's icon, or date, set the , or properties.
Constructs a new instance of .
: Sets the creation DateTime of the file.
Wisej.Web.FileDialogRootCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represent a collection of the root file systems shown by the implementation.
Maps the virtual path to the corresponding physical path on the specific implementation.
Returns: . The physical path for the implementation.
Wisej.Web.FileDialog
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Displays a dialog box from which the user can select a file.
This class is abstract. The current implementations in Wisej are and . You can override this class or and to add your own custom behavior and localization. You can:
Override . It's called when the specified file doesn't exist and the property is true.
Override to create your custom when the method is called.
Set the to a class that has a constructor that accepts as the single argument to change the User Interface (UI) of the file dialog.
Override to provide your custom implementation of the actions to execute when the user presses the OK button.
You must add at least one to the collection before showing the dialog.
Initializes a new instance of .
Informs the user that the file specified in fileName doesn't exist. You can override this method to provide your text and localization.
Resets all properties to their default values.
Wisej.Web.FileDialogUI
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
UI implementation for the FileDialog class.
Initializes a new instance of .
Initializes a new instance of .
Clean up any resources being used.
Returns the directories in the specified path within the root file system.
Returns the list of files in the path that match the pattern within the specified root file system.
An that represents the container of the component.
An that provides the event data.
onclose
Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the When the onclose event handler is specified, the modal dialog doesn't suspend the execution on the server but it's still shown as a modal dialog on the client.
A that represents the top-level window that owns the modal dialog box. It can be null.
A that represents the top-level window that owns the modal dialog box. It can be null.
onclose
Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the When the onclose event handler is specified, the modal dialog doesn't suspend the execution on the server but it's still shown as a modal dialog on the client.
owner
A that represents the top-level window that owns the modal dialog box. It can be null.
Allows the user to select a folder from one of the .
: Sets the file size in bytes.
: Sets the name or path of the icon to display next to the file.
: Returns true when the refers to a directory.
: Sets the last modified DateTime of the file.
: Returns the full path of the file or folder being loaded.
Initializes a new instance of using the initial roots .
Initializes a new instance of the extender with a specified container.
: Returns or sets whether the dialog box automatically adds an extension to a file name if the user omits the extension. (Default: True
)
: Returns or sets whether the dialog box displays a warning if the user specifies a file name that does not exist. (Default: False
)
: Returns or sets the default file name extension. (Default: ""
)
: Returns or sets a string containing the file name selected in the file dialog box. (Default: ""
)
: Returns the file names of all selected files in the dialog box.
: Returns the that contains the selected .
: Returns or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box. (Default: ""
)
: Returns or sets the index of the filter currently selected in the file dialog box. (Default: 1
)
: Returns or sets the initial directory displayed by the file dialog box. (Default: ""
)
: List of root file systems displayed by the FileDialog.
The Roots collection and the implementations allow the application to use arbitrary names mapped to a specific path. For example, the app may add a root object named "Documents" to "c:\users[logged-user-id]\files\documents". Each user will see "Documents" as the root, but will also see only the files in the [logged-user-id] directory.
: Returns or sets whether the Help button is displayed in the file dialog box. (Default: False
)
: Returns or sets the file dialog box title. (Default: ""
)
Returns: .
Returns the that contains the specified path .
Returns: . The that contains the specified path or null if not found.
Maps the virtual path to the corresponding physical path on the specific implementation.
Returns: . The physical path for the implementation.
Fires the event.
Fires the event.
Receives the file names selected by the user and validates them according to the properties set in the instance.
Returns: . True if the files have been validated and the dialog can close; otherwise false to keep the dialog open.
Fired when the user clicks on the Open or Save button on a file dialog box.
Fired when the file dialog is loading a file or folder.
Returns: . A string array with the path of the directories.
Returns the a or a that corresponds to the icon of the file specified in path .
Returns: . An or a representing the file's icon.
Returns: . A string array with the full path of the files that qualify the specified criteria.
Represents the method that will handle the LoadPath event.
roots
Initial file systems to load in the FolderBrowserDialog.
container
An IContainer that represents the container of the FileDialog component.
path
Full path of the file to locate in on of the Roots.
filePath
Virtual path to map to the corresponding physical path.
e
A CancelEventArgs that contains the event data.
e
A FileDialogLoadPathEventArgs object that provides the event data.
fileNames
Array containing the selected file paths.
fileName
Name of the file that doesn't exist.
Prompts the user to open a file from the server.
Prompts the user to select a location for saving a file on the server.
disposing
true if managed resources should be disposed; otherwise, false.
root
The IFileSystemProvider that represents the root file system.
path
Full path containing the directories to enumerate.
path
The path of the file for which to retrieve the icon.
root
The IFileSystemProvider that contains the files.
path
Path where the files are located.
pattern
Wildcard pattern to qualify the files to return.
e
e
Provides access to the UserData
and Tag
properties associated to the component implementing this interface.
Bindable components implement this interface.
Provides the functionality for a control to act as a parent for other controls.
Controls that support drag & drop operations implement this interface.
All wisej components implement this interface.
All wisej controls derived from the Control class must implement this interface.
All wisej top-level windows implement this interface.
Allows an object to serialize itself.
Wisej.Web.SaveFileDialog
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Prompts the user to select a location for saving a file on the server.
You can:
Override PromptFileNotFound. It's called when the specified file doesn't exist and the property CheckFileExists is true.
Override PromptFileCreate. It's called when the specified file doesn't exist and the property CreatePrompt is true.
Override PromptFileOverwrite. It's called when the specified file doesn't exist and the property OverwritePrompt is true.
Override CreateUI to create your custom Form when the method ShowDialog is called.
Set the DialogTemplate to a Form class that has a constructor that accepts FileDialog as the single argument to change the User Interface (UI) of the file dialog.
Override OnFileOk to provide your custom implementation of the actions to execute when the user presses the OK button.
You must add at least one IFileSystemProvider to the Roots collection before showing the dialog.
Initializes a new instance of SaveFileDialog.
Initializes a new instance of the SaveFileDialog extender with a specified container.
container
Boolean: Returns or sets a value indicating whether the dialog box prompts the user for permission to create a file, if the file specified file does not exist. (Default: False
)
Boolean: Returns or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that already exists. (Default: True
)
Opens the file with read/write permission selected by the user.
Returns: Stream. A Stream that specifies the read/write file selected by the user.
Throws:
ArgumentNullException FileName is empty or null.
Receives the file names selected by the user and validates them according to the properties set in the FileDialog instance.
fileNames
Array containing the selected file paths.
Returns: Boolean. True if the files have been validated and the dialog can close; otherwise false to keep the dialog open.
Asks the user's permission to create the specified fileName .
fileName
File name to create.
Returns: Boolean. True if the user confirms to create the file.
Asks the user's permission to overwrite the specified fileName .
fileName
File name to overwrite.
Returns: Boolean. True if the user confirms to overwrite the file.
Resets all dialog box options to their default values.
path
Path of the file or directory.
isDirectory
Indicates that the path is for a directory.
filePath
Virtual path to map to the corresponding physical path.
fileDialog
Wisej.Web.FolderBrowserDialogUI
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
UI implementation for the FolderDialog class.
Initializes a new instance of FolderBrowserDialogUI.
Initializes a new instance of FolderBrowserDialogUI.
folderDialog
Clean up any resources being used.
disposing
true if managed resources should be disposed; otherwise, false.
Returns the directories in the specified path within the root file system.
root
path
Full path containing the directories to enumerate.
Returns: String[]. A string array with the path of the directories.
e
Provides access to the UserData
and Tag
properties associated to the component implementing this interface.
Bindable components implement this interface.
Provides the functionality for a control to act as a parent for other controls.
Controls that support drag & drop operations implement this interface.
All wisej components implement this interface.
All wisej top-level windows implement this interface.
Allows an object to serialize itself.
Wisej.Web.FolderBrowserDialog
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Allows the user to select a folder from one of the Roots.
Initializes a new instance of FolderBrowserDialog.
Initializes a new instance of FolderBrowserDialog using the initial roots .
roots
Initializes a new instance of the FolderBrowserDialog extender with a specified container.
container
String: Returns or sets the description splayed above the tree view control in the dialog box. (Default: ""
)
FileDialogRootCollection: List of root IFileSystemProvider file systems displayed by the FolderBrowserDialog.
The Roots collection and the IFileSystemProvider implementations allow the application to use arbitrary names mapped to a specific path. For example, the app may add a root object named "Documents" to "c:\users[logged-user-id]\files\documents". Each user will see "Documents" as the root, but will also see only the files in the [logged-user-id] directory. The deafult value is an empty FileDialogRootCollection
String: Returns sets the path selected by the user. (Default: ""
)
Boolean: Returns or sets whether the Help button is displayed in the file dialog box. (Default: False
)
String: Returns or sets the file dialog box title. (Default: ""
)
Returns: Form.
Returns the IFileSystemProvider that contains the specified path .
path
Returns: IFileSystemProvider. The IFileSystemProvider that contains the specified path or null if not found.
Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.
folderPath
Virtual path to map to the corresponding physical path.
Returns: String. The physical path for the IFileSystemProvider implementation.
Fires the LoadPath event.
e
path
Resets all properties to their default values.
FileDialogLoadPathEventHandler Fired when the file dialog is loading a file or folder.
Wisej.Web.OpenFileDialog
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Prompts the user to open a file from the server.
You can:
Override . It's called when the specified file doesn't exist and the property is true.
Override to create your custom when the method is called.
Set the to a class that has a constructor that accepts as the single argument to change the User Interface (UI) of the file dialog.
Override to provide your custom implementation of the actions to execute when the user presses the OK button.
You must add at least one to the collection before showing the dialog.
Initializes a new instance of .
Default value is an empty array of strings- string[0]
Throws:
Resets all properties to their default values.
An that represents the container of the component.
The that represents the root file system.
All wisej controls derived from the class must implement this interface.
Initial file systems to load in the .
An that represents the container of the component.
Full path of the file to locate in on of the .
A object that provides the event data.
Initializes a new instance of the extender with a specified container.
: Returns or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. (Default: True
)
: Returns or sets a value indicating whether the dialog box allows multiple files to be selected. (Default: False
)
: Returns the file name and extension for the file selected in the dialog box. The file name does not include the path. (Default: ""
)
: Returns an array of file names and extensions for all the selected files in the dialog box. The file names do not include the path.
Opens the file selected by the user, with read-only permission. The file is specified by the property.
Returns: . A that specifies the read-only file selected by the user.
is empty or null.
container
An IContainer that represents the container of the OpenFileDialog component.