Interface IModulesService
Represents an interface for a service which creates, saves and loads a configuration for ILisrtModules.
public interface IModulesService : INotifyPropertyChanged
- Inherited Members
- Extension Methods
Properties
ConfigurationManager
Gets the IConfigurationManager for loading and saving a IModuleConfiguration.
IConfigurationManager ConfigurationManager { get; }
Property Value
CurrentConfigurationName
Gets the name of the current ModuleConfiguration or null.
string CurrentConfigurationName { get; }
Property Value
ModuleConfigurations
Gets the latest loaded IModuleConfigurations.
IEnumerable<IModuleConfiguration> ModuleConfigurations { get; }
Property Value
PropertyConverter
Gets the IStringConverter.
IStringConverter PropertyConverter { get; }
Property Value
RootModules
Gets or sets the 'RootModules'.ILisrtModule.
ILisrtModule[] RootModules { get; set; }
Property Value
Methods
LoadConfigurationToRootModule()
Opens a dialog and loads the ModuleConfiguration to the RootModules with ConfigurationManager and new initialization.
bool LoadConfigurationToRootModule()
Returns
- bool
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, bool), ApplyToModule(ILisrtModule, IStringConverter).
LoadConfigurationToRootModule(string)
Loads the ModuleConfiguration from the path
to the RootModules with ConfigurationManager and new initialization.
bool LoadConfigurationToRootModule(string path)
Parameters
path
stringPath to the configuration file.
Returns
- bool
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.
void SaveConfigurationFromRootModule()
Remarks
Opens usually a dialog to choose a path.