Interface IModulesService
Represents an interface for a service which creates, saves and loads a configuration for ILisrtModules.
Inherited Members
Namespace: Loehnert.Lisrt.Modules
Assembly: Loehnert.Lisrt.Modules.dll
Syntax
public interface IModulesService : INotifyPropertyChanged
Properties
ConfigurationManager
Gets the IConfigurationManager for loading and saving a IModuleConfiguration.
Declaration
IConfigurationManager ConfigurationManager { get; }
Property Value
Type | Description |
---|---|
IConfigurationManager |
CurrentConfigurationName
Gets the name of the current ModuleConfiguration or null.
Declaration
string CurrentConfigurationName { get; }
Property Value
Type | Description |
---|---|
String |
ModuleConfigurations
Gets the latest loaded IModuleConfigurations.
Declaration
IEnumerable<IModuleConfiguration> ModuleConfigurations { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IModuleConfiguration> |
PropertyConverter
Gets the IStringConverter.
Declaration
IStringConverter PropertyConverter { get; }
Property Value
Type | Description |
---|---|
IStringConverter |
RootModules
Gets or sets the 'RootModules'.ILisrtModule.
Declaration
ILisrtModule[] RootModules { get; set; }
Property Value
Type | Description |
---|---|
ILisrtModule[] |
Methods
LoadConfigurationToRootModule()
Opens a dialog and loads the ModuleConfiguration to the RootModules with ConfigurationManager and new initialization.
Declaration
bool LoadConfigurationToRootModule()
Returns
Type | Description |
---|---|
Boolean | True if all ILisrtModules with their sub modules and properties could be loaded to the target. |
Remarks
Opens usually a dialog to choose a path. ExitRecursively(ILisrtModule, Boolean), ApplyToModule(ILisrtModule, IStringConverter).
LoadConfigurationToRootModule(String)
Loads the ModuleConfiguration from the path
to the RootModules with ConfigurationManager and new initialization.
Declaration
bool LoadConfigurationToRootModule(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | Path to the configuration file. |
Returns
Type | Description |
---|---|
Boolean | True if all ILisrtModules with their sub modules and properties could be loaded to the target. |
Remarks
SaveConfigurationFromRootModule()
Saves the ModuleConfiguration from RootModules with ConfigurationManager.
Declaration
void SaveConfigurationFromRootModule()
Remarks
Opens usually a dialog to choose a path.