Table of Contents

Interface IConfigurationManager

Namespace
Loehnert.Lisrt.Modules
Assembly
Loehnert.Lisrt.Modules.dll

Interface for saving and loading a IModuleConfiguration.

public interface IConfigurationManager
Extension Methods

Methods

Load()

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)

IEnumerable<IModuleConfiguration> Load(string path)

Parameters

path string

Path 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)

void Save(IEnumerable<IModuleConfiguration> configurations, string path)

Parameters

configurations IEnumerable<IModuleConfiguration>

The configurations to be saved.

path string

Path of the configuration file.

Events

ConfigurationLoaded

Occurs when a configuration is loaded

event EventHandler<ConfigurationLoadedEventArgs> ConfigurationLoaded

Event Type

EventHandler<ConfigurationLoadedEventArgs>