Repository for export settings, is concerned with storing and retrieving a collection of Presets.
More...
|
static PresetsRepository | Default [get, set] |
| The default (singleton) presets repository will always have at least one Preset, unless the Presets collection is replaced with an empty collection. More...
|
|
ObservableCollection< Preset > | Presets [get, set] |
| Gets or sets the Presets collection. More...
|
|
Preset | First [get] |
| Gets the first preset in the repository. Will create one if necessary. More...
|
|
Repository for export settings, is concerned with storing and retrieving a collection of Presets.
◆ Add() [1/2]
void XLToolbox.Export.Models.PresetsRepository.Add |
( |
Preset |
preset | ) |
|
|
inline |
◆ Add() [2/2]
◆ FindByHash()
Preset XLToolbox.Export.Models.PresetsRepository.FindByHash |
( |
string |
hash | ) |
|
|
inline |
Retrieves a Preset by its MD5 hash. If the hash is not found in the repository, this method returns null.
- Parameters
-
- Returns
- Corresponding Preset, or null if no Preset with this hash exists.
◆ FindOrAdd()
Preset XLToolbox.Export.Models.PresetsRepository.FindOrAdd |
( |
Preset |
preset | ) |
|
|
inline |
Looks up a preset by its guid and returns the Preset object stored in the repository. If the guid is not found, the Preset is added to the repository.
This method serves to reuse existing Presets: Given a Preset object, if a Preset object with the same guid exists in the repository, this object will be returned to that the original Preset object can be discarded.
◆ Remove()
void XLToolbox.Export.Models.PresetsRepository.Remove |
( |
Preset |
preset | ) |
|
|
inline |
◆ Default
The default (singleton) presets repository will always have at least one Preset, unless the Presets collection is replaced with an empty collection.
◆ First
Preset XLToolbox.Export.Models.PresetsRepository.First |
|
get |
Gets the first preset in the repository. Will create one if necessary.
◆ Presets
ObservableCollection<Preset> XLToolbox.Export.Models.PresetsRepository.Presets |
|
getset |
Gets or sets the Presets collection.
The documentation for this class was generated from the following file: