Table of Contents

Interface IModulesService

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

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

IConfigurationManager

CurrentConfigurationName

Gets the name of the current ModuleConfiguration or null.

string CurrentConfigurationName { get; }

Property Value

string

ModuleConfigurations

Gets the latest loaded IModuleConfigurations.

IEnumerable<IModuleConfiguration> ModuleConfigurations { get; }

Property Value

IEnumerable<IModuleConfiguration>

PropertyConverter

Gets the IStringConverter.

IStringConverter PropertyConverter { get; }

Property Value

IStringConverter

RootModules

Gets or sets the 'RootModules'.ILisrtModule.

ILisrtModule[] RootModules { get; set; }

Property Value

ILisrtModule[]

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

LoadConfigurationToRootModule(string)

Loads the ModuleConfiguration from the path to the RootModules with ConfigurationManager and new initialization.

bool LoadConfigurationToRootModule(string path)

Parameters

path string

Path to the configuration file.

Returns

bool

True if all ILisrtModules with their sub modules and properties could be loaded to the target.

Remarks

SaveConfigurationFromRootModule()

void SaveConfigurationFromRootModule()

Remarks

Opens usually a dialog to choose a path.