Class FileDialog
Implements a dialogs to open or save to the file system.
Inheritance
System.Object
FileDialog
Implements
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[Export(typeof(IFileDialog))]
[PartCreationPolicy(CreationPolicy.NonShared)]
public class FileDialog : IFileDialog
Properties
View SourceFileName
Gets the file name of the selected file.
Declaration
public string FileName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
FileNames
Gets an array that contains one file name for each selected file.
Declaration
public IEnumerable<string> FileNames { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.String> |
Methods
View SourceShowOpenFileDialog(FileDialogArgs)
Declaration
public bool ShowOpenFileDialog(FileDialogArgs fileDialogArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| FileDialogArgs | fileDialogArgs |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if a file has been selected, otherwise false. |
ShowSaveFileDialog(FileDialogArgs)
Declaration
public bool ShowSaveFileDialog(FileDialogArgs fileDialogArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| FileDialogArgs | fileDialogArgs |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if a file has been selected, otherwise false. |