Class ComparisonDiagramElement
Two values comparison element.
Implements
Ecng.Serialization.IPersistable
Ecng.ComponentModel.INotifyPropertiesChanged
Inherited Members
Namespace: StockSharp.Xaml.Diagram.Elements
Assembly: StockSharp.Xaml.Diagram.dll
Syntax
[CategoryLoc("Str1559")]
[DisplayNameLoc("Comparison")]
[DescriptionLoc("TwoValuesComparisonElement", false)]
public sealed class ComparisonDiagramElement : DiagramElement, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged
Constructors
ComparisonDiagramElement()
Initializes a new instance of the ComparisonDiagramElement.
Declaration
public ComparisonDiagramElement()
Properties
IconName
Icon resource name.
Declaration
public override string IconName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
LeftValue
Left operand.
Declaration
public DiagramSocket LeftValue { get; set; }
Property Value
Type | Description |
---|---|
DiagramSocket |
Operator
Operator.
Declaration
public Nullable<ComparisonOperator> Operator { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Ecng.ComponentModel.ComparisonOperator> |
RightValue
Right operand.
Declaration
public DiagramSocket RightValue { get; set; }
Property Value
Type | Description |
---|---|
DiagramSocket |
TypeId
The unique identifier of the diagram element type.
Declaration
public override Guid TypeId { get; }
Property Value
Type | Description |
---|---|
Guid |
Overrides
Methods
OnProcess(DateTimeOffset, IDictionary<DiagramSocket, DiagramSocketValue>, DiagramSocketValue)
The method is called at the processing of the new incoming values.
Declaration
protected override void OnProcess(DateTimeOffset time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)
Parameters
Type | Name | Description |
---|---|---|
DateTimeOffset | time | Time. |
IDictionary<DiagramSocket, DiagramSocketValue> | values | Values. |
DiagramSocketValue | source | Source value. |
Overrides
OnStart()
The method is called at the start of the diagram element algorithm.
Declaration
protected override void OnStart()
Overrides
Implements
Ecng.Serialization.IPersistable
Ecng.ComponentModel.INotifyPropertiesChanged