|
T | GetDefault< T > () |
| Gets the first or default instance in the component settings list. More...
|
|
| ComponentSettingsList () |
| Initializes the list.
|
|
void | Add (ContainedType item) |
| Adds an element to the collection. More...
|
|
void | Clear () |
| Removes all elements from the collection.
|
|
bool | Contains (ContainedType item) |
| Determines if the collection contains the specified element. More...
|
|
void | CopyTo (ContainedType[] array, int arrayIndex) |
| Copies the collection to a compatible array. More...
|
|
bool | Remove (ContainedType item) |
| Removes the first occurrence of a specified element from the collection. More...
|
|
IEnumerator< ContainedType > | GetEnumerator () |
| Returns an IEnumerator that iterates through the collection. More...
|
|
int | IndexOf (ContainedType item) |
| Returns the index of the first occurrences of a specified element in the collection. More...
|
|
void | Insert (int index, ContainedType item) |
| Insert an element into the collection at the specified index. More...
|
|
void | RemoveAt (int index) |
| Removes an element at a specified index. More...
|
|
int | Add (object value) |
| Adds an element to the collection. More...
|
|
bool | Contains (object value) |
| Determines if the collection contains the specified element. More...
|
|
int | IndexOf (object value) |
| Returns the index of the first occurrences of a specified element in the collection. More...
|
|
void | Insert (int index, object value) |
| Insert an element into the collection at the specified index. More...
|
|
void | Remove (object value) |
| Removes the first occurrence of a specified element from the collection. More...
|
|
void | CopyTo (Array array, int index) |
| Copies the collection to a compatible array. More...
|
|
void | Save () |
| Saves the settings held by this class to an XML file in the ComponentSettings.SetSettingsProfile(string, string).
|
|
void | Invalidate () |
| Invalidates the cache of this type of component setting.
|
|
void | Reload () |
| Forces the reload of this type of component setting from the XML file the next time the setting is used.
|
|
virtual void | Initialize () |
| Called if a new ComponentSettings is instantiated and there are no corresponding settings XML.
|
|
void | OnPropertyChanged (string propertyName) |
| Triggers the PropertyChanged event. More...
|
|
|
static IList | GetContainer (Type T) |
| Finds a ComponentSettingsList containing instances of T. More...
|
|
static IList< T > | GetItems< T > () |
| Gets the ComponentSettings list for T and filters the instances that are not T. More...
|
|
static IList | GetItems (Type T) |
| (non-generic) Gets the ComponentSettings list for T and filters the instances that are not T. More...
|
|
static T | GetDefaultOf< T > () |
| Static Get first or default instance in the component settings list. (uses GetCurrent) More...
|
|
static ComponentSettings | GetCurrent (Type settingsType) |
| Gets current settings for a specified component. This is either an instance of the settings class previously loaded, or a new instance loaded from the associated file. More...
|
|
static ComponentSettings | GetCurrent (ITypeData settingsType) |
| Gets current settings for a specified component. This is either an instance of the settings class previously loaded, or a new instance loaded from the associated file. More...
|
|
static string | GetSettingsDirectory (string groupName, bool isProfile=true) |
| The directory where the settings are loaded from / saved to. More...
|
|
static void | EnsureSettingsDirectoryExists (string groupName, bool isProfile=true) |
| Ensures that the Settings directory exists and that the specified groupName sub directory exists. This might throw an exception if the settings directory was configured to something invalid. Like 'AUX', 'NUL', .... More...
|
|
static void | SetSettingsProfile (string groupName, string profileName) |
| Sets the directory in which settings groups are loaded from / saved to. More...
|
|
static void | SaveAllCurrentSettings () |
| Saves all ComponentSettings objects that have been loaded.
|
|
static string | GetSaveFilePath (Type type) |
| Gets the current file location where a ComponentSettings type is saved. More...
|
|
static void | SetCurrent (Stream xmlFileStream) |
| Sets current settings for a component setting based on a stream of the file contents of a ComponentSettings XML file. More...
|
|
static void | SetCurrent (Stream xmlFileStream, out IEnumerable< XmlError > errors) |
| Sets current settings for a component setting based on a stream of the file contents of a ComponentSettings XML file. More...
|
|
static ComponentSettings | GetCurrentFromCache (Type settingsType) |
| Gets current settings for a specified component from cache. More...
|
|
|
int | Count [get] |
| Gets the number of elements in the collection.
|
|
bool | IsReadOnly [get] |
| Determines if the collection is read only.
|
|
ContainedType | this[int index] [getset] |
| List interface More...
|
|
bool | IsFixedSize [get] |
| Determines if the collection is fixed size.
|
|
bool | IsSynchronized [get] |
| Determines if the collection is synchronized.
|
|
object | SyncRoot [get] |
| Gets an object that can be used to synchronize access the collection.
|
|
static T | Current [get] |
| Get the currently loaded ComponentSettings instance for this class.
|
|
string? | GroupName [get] |
| Settings group of this settings class.
|
|
static string | SettingsDirectoryRoot [getset] |
| Where settings files are located. Usually this is at "[Executable location]\Settings", but it can be set to different locations. Setting this will invalidate loaded settings.
|
|
ValidationRuleCollection | Rules [get] |
| All the validation rules. Add new rules to this in order to get runtime value validation.
|
|
string | Error [get] |
| Gets the error messages for each invalid rule and joins them with a newline.
|
|
ValidationRuleCollection | Rules [get] |
| A collection of all the currently defined validation rules. Add new rules here in order to get runtime value validation.
|
|
Contains some extra functionality for the ComponentSettingsList. Created so that it is possible to know which (generic) ComponentSettingsList contains a given type.
ComponentSettingsList is a collection of objects. This is the case for DutSettings, for instance. Uses IObservableCollection so that changes can be monitored.
- Template Parameters
-
DerivedType | |
ContainedType | |