Generic file load function.
Namespace: Stemmer.Cvb.Wpf
Assembly: Stemmer.Cvb.Wpf (in Stemmer.Cvb.Wpf.dll) Version: 14.0.0.0
Syntax
public static TObject LoadByDialog<TObject>( LoadConstructor<TObject> f, Window owner, string title, string filter, string defaultExtension ) where TObject : class
Parameters
- f
- Type: Stemmer.Cvb.UtilitiesLoadConstructorTObject
Load delegate. - owner
- Type: System.WindowsWindow
Window that owns the modal dialog. - title
- Type: SystemString
Title of the dialog. - filter
- Type: SystemString
File type filter. - defaultExtension
- Type: SystemString
Default extension to append to the file name if no extension was specified.
Type Parameters
- TObject
- Type of the object to be loaded.
Return Value
Type: TObjectLoaded object (or null if loading fails).
See Also