Interface IConfigurationManager
Interface for saving and loading a IModuleConfiguration.
Namespace: Loehnert.Lisrt.Modules
Assembly: Loehnert.Lisrt.Modules.dll
Syntax
public interface IConfigurationManager
Methods
Load()
Loads IModuleConfigurations.
Declaration
IEnumerable<IModuleConfiguration> Load()
Returns
Type | Description |
---|---|
IEnumerable<IModuleConfiguration> | Returns a new instance of IModuleConfiguration or null when the dialog was canceled.. |
Remarks
This method shows a dialog, where the user can select a configuration.
Load(String)
Loads a IModuleConfiguration.
Declaration
IEnumerable<IModuleConfiguration> Load(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | Path of the configuration file. |
Returns
Type | Description |
---|---|
IEnumerable<IModuleConfiguration> | Returns a new instance of IModuleConfiguration. |
Save(IEnumerable<IModuleConfiguration>)
Saves the configurations
.
Declaration
void Save(IEnumerable<IModuleConfiguration> configurations)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IModuleConfiguration> | configurations | The configuration to be saved. |
Remarks
This method shows a dialog, where the user can select a target.
Save(IEnumerable<IModuleConfiguration>, String)
Saves the IModuleConfiguration.
Declaration
void Save(IEnumerable<IModuleConfiguration> configurations, string path)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IModuleConfiguration> | configurations | The configurations to be saved. |
String | path | Path of the configuration file. |
Events
ConfigurationLoaded
Occurs when a configuration is loaded
Declaration
event EventHandler<ConfigurationLoadedEventArgs> ConfigurationLoaded
Event Type
Type | Description |
---|---|
System.EventHandler<ConfigurationLoadedEventArgs> |