Interface IConfigurationManager
Interface for saving and loading a IModuleConfiguration.
public interface IConfigurationManager
- Extension Methods
Methods
Load()
Loads IModuleConfigurations.
IEnumerable<IModuleConfiguration> Load()
Returns
- 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.
IEnumerable<IModuleConfiguration> Load(string path)
Parameters
path
stringPath of the configuration file.
Returns
- IEnumerable<IModuleConfiguration>
Returns a new instance of IModuleConfiguration.
Save(IEnumerable<IModuleConfiguration>)
Saves the configurations
.
void Save(IEnumerable<IModuleConfiguration> configurations)
Parameters
configurations
IEnumerable<IModuleConfiguration>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.
void Save(IEnumerable<IModuleConfiguration> configurations, string path)
Parameters
configurations
IEnumerable<IModuleConfiguration>The configurations to be saved.
path
stringPath of the configuration file.
Events
ConfigurationLoaded
Occurs when a configuration is loaded
event EventHandler<ConfigurationLoadedEventArgs> ConfigurationLoaded