Class CompositeModule
Represents a base module for a module that can contain child modules. You can build trees of CompositeModule instances.
Inheritance
Caliburn.Micro.PropertyChangedBase
CompositeModule
Implements
Caliburn.Micro.INotifyPropertyChangedEx
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanged
Inherited Members
Caliburn.Micro.PropertyChangedBase.Refresh()
Caliburn.Micro.PropertyChangedBase.NotifyOfPropertyChange(System.String)
Caliburn.Micro.PropertyChangedBase.NotifyOfPropertyChange<TProperty>(System.Linq.Expressions.Expression<System.Func<TProperty>>)
Caliburn.Micro.PropertyChangedBase.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)
Caliburn.Micro.PropertyChangedBase.OnUIThread(System.Action)
Caliburn.Micro.PropertyChangedBase.Set<T>(T, T, System.String)
Caliburn.Micro.PropertyChangedBase.IsNotifying
Caliburn.Micro.PropertyChangedBase.PropertyChanged
Namespace: Loehnert.Lisrt.Modules
Assembly: Loehnert.Lisrt.Modules.dll
Syntax
public class CompositeModule : LisrtModule, INotifyPropertyChangedEx, ICompositeModule, ILisrtModule, INotifyPropertyChanged
Examples
This example creates a station with two work positions ("Flashing" and "FunctionTest").
_root = new LisrtModule("Station", new LisrtModule[]
{
new LisrtModule("WpFlash", new LisrtModule[]
{
new LisrtModule("PowerSupply"),
new LisrtModule("Programmer")
}),
new LisrtModule("WpFunctionTest", new LisrtModule[]
{
new PowerSupplyModule("PowerSupply", new SerialPort()),
new LisrtModule("Multiplexer"),
new LisrtModule("DMM")
})
});
Constructors
CompositeModule(String)
Initializes a new instance of the CompositeModule class.
Declaration
public CompositeModule(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the CompositeModule instance. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
CompositeModule(String, ILisrtModule[])
Initializes a new instance of the CompositeModule class.
Declaration
public CompositeModule(string name, params ILisrtModule[] subModules)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the CompositeModule instance. |
ILisrtModule[] | subModules | Sub modules of the new ILisrtModule instance. |
Properties
SubModules
Gets a collection of the child instances of LisrtModule.
Declaration
public virtual ILisrtModuleCollection SubModules { get; }
Property Value
Type | Description |
---|---|
ILisrtModuleCollection |
Implements
Caliburn.Micro.INotifyPropertyChangedEx
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanged