CVB.Net 15.0
Loading...
Searching...
No Matches
FileDialogs Class Reference

Container class for utility functions for file dialogs. More...

Static Public Member Functions

static TObject LoadByDialog< TObject > (LoadConstructor< TObject > f, System.Windows.Window owner, string title, string filter, string defaultExtension)
 Generic file load function.
 
static TObject LoadByDialog< TObject > (LoadConstructor< TObject > f, System.Windows.Window owner, string title, string filter)
 Generic file load function.
 
static TObject LoadByDialog< TObject > (LoadConstructor< TObject > f, string title, string filter)
 Generic file load function.
 
static TObject LoadByDialog< TObject > (LoadConstructor< TObject > f, string filter)
 Generic file load function.
 
static TObject LoadByDialog< TObject > (LoadConstructor< TObject > f)
 Generic file load function.
 
static bool SaveByDialog< TObject > (TObject obj, SaveFunction< TObject > f, System.Windows.Window owner, string title, string filter, string defaultExtension)
 Generic file save function.
 
static bool SaveByDialog< TObject > (TObject obj, SaveFunction< TObject > f, System.Windows.Window owner, string title, string filter)
 Generic file save function.
 
static bool SaveByDialog< TObject > (TObject obj, SaveFunction< TObject > f, string title, string filter)
 Generic file save function.
 
static bool SaveByDialog< TObject > (TObject obj, SaveFunction< TObject > f, string filter)
 Generic file save function.
 
static bool SaveByDialog< TObject > (TObject obj, SaveFunction< TObject > f)
 Generic file save function.
 

Detailed Description

Container class for utility functions for file dialogs.

Member Function Documentation

◆ LoadByDialog< TObject >() [1/5]

static TObject LoadByDialog< TObject > ( LoadConstructor< TObject > f)
static

Generic file load function.

Template Parameters
TObjectType of the object to be loaded.
Parameters
fLoad delegate.
Returns
Loaded object (or null if loading fails).
Type Constraints
TObject :class 

◆ LoadByDialog< TObject >() [2/5]

static TObject LoadByDialog< TObject > ( LoadConstructor< TObject > f,
string filter )
static

Generic file load function.

Template Parameters
TObjectType of the object to be loaded.
Parameters
fLoad delegate.
filterFile type filter.
Returns
Loaded object (or null if loading fails).
Type Constraints
TObject :class 

◆ LoadByDialog< TObject >() [3/5]

static TObject LoadByDialog< TObject > ( LoadConstructor< TObject > f,
string title,
string filter )
static

Generic file load function.

Template Parameters
TObjectType of the object to be loaded.
Parameters
fLoad delegate.
titleTitle of the dialog.
filterFile type filter.
Returns
Loaded object (or null if loading fails).
Type Constraints
TObject :class 

◆ LoadByDialog< TObject >() [4/5]

static TObject LoadByDialog< TObject > ( LoadConstructor< TObject > f,
System.Windows.Window owner,
string title,
string filter )
static

Generic file load function.

Template Parameters
TObjectType of the object to be load ed.
Parameters
fLoad delegate.
ownerWindow that owns the modal dialog.
titleTitle of the dialog.
filterFile type filter.
Returns
Loaded object (or null if loading fails).
Type Constraints
TObject :class 

◆ LoadByDialog< TObject >() [5/5]

static TObject LoadByDialog< TObject > ( LoadConstructor< TObject > f,
System.Windows.Window owner,
string title,
string filter,
string defaultExtension )
static

Generic file load function.

Template Parameters
TObjectType of the object to be loaded.
Parameters
fLoad delegate.
ownerWindow that owns the modal dialog.
titleTitle of the dialog.
filterFile type filter.
defaultExtensionDefault extension to append to the file name if no extension was specified.
Returns
Loaded object (or null if loading fails).
Type Constraints
TObject :class 

◆ SaveByDialog< TObject >() [1/5]

static bool SaveByDialog< TObject > ( TObject obj,
SaveFunction< TObject > f )
static

Generic file save function.

Template Parameters
TObjectType of the object to be saved.
Parameters
fLoad delegate.
objObject to be saved.
Returns
true if the save operation succeeded, false otherwise.

◆ SaveByDialog< TObject >() [2/5]

static bool SaveByDialog< TObject > ( TObject obj,
SaveFunction< TObject > f,
string filter )
static

Generic file save function.

Template Parameters
TObjectType of the object to be saved.
Parameters
fLoad delegate.
filterFile type filter.
objObject to be saved.
Returns
true if the save operation succeeded, false otherwise.

◆ SaveByDialog< TObject >() [3/5]

static bool SaveByDialog< TObject > ( TObject obj,
SaveFunction< TObject > f,
string title,
string filter )
static

Generic file save function.

Template Parameters
TObjectType of the object to be saved.
Parameters
fLoad delegate.
titleTitle of the dialog.
filterFile type filter.
objObject to be saved.
Returns
true if the save operation succeeded, false otherwise.

◆ SaveByDialog< TObject >() [4/5]

static bool SaveByDialog< TObject > ( TObject obj,
SaveFunction< TObject > f,
System.Windows.Window owner,
string title,
string filter )
static

Generic file save function.

Template Parameters
TObjectType of the object to be saved.
Parameters
fLoad delegate.
ownerWindow that owns the modal dialog.
titleTitle of the dialog.
filterFile type filter.
objObject to be saved.
Returns
true if the save operation succeeded, false otherwise.

◆ SaveByDialog< TObject >() [5/5]

static bool SaveByDialog< TObject > ( TObject obj,
SaveFunction< TObject > f,
System.Windows.Window owner,
string title,
string filter,
string defaultExtension )
static

Generic file save function.

Template Parameters
TObjectType of the object to be saved.
Parameters
fLoad delegate.
ownerWindow that owns the modal dialog.
titleTitle of the dialog.
filterFile type filter.
defaultExtensionDefault extension to append to the file name if no extension was specified.
objObject to be saved.
Returns
true if the save operation succeeded, false otherwise.