DiagramSocketType
Connection type.
Inherits: Equatable<DiagramSocketType>
Implements: INotifyPropertyChanged, IPersistable
Constructors
private DiagramSocketType(Type type, string name, Color color)
diagramSocketType = DiagramSocketType(type, name, color)
Initializes a new instance of the DiagramSocketType.
- type
- Data type.
- name
- The name of the connection type.
- color
- The connection color.
Properties
public static IEnumerable<DiagramSocketType> AllTypes { get; }
value = DiagramSocketType.AllTypes
All available connection types for elements.
public Color Color { get; private set; }
value = diagramSocketType.Color
diagramSocketType.Color = value
The connection color.
public string Name { get; private set; }
value = diagramSocketType.Name
diagramSocketType.Name = value
The name of the connection type.
public Type Type { get; private set; }
value = diagramSocketType.Type
diagramSocketType.Type = value
Connection type.
Methods
public override DiagramSocketType Clone()
result = diagramSocketType.Clone()
Create a copy of DiagramSocketType.
Returns: Copy.
public static DiagramSocketType GetSocketType(Type parameterType)
result = DiagramSocketType.GetSocketType(parameterType)
Get DiagramSocketType for Type.
- parameterType
- Type.
Returns: Diagram socket type.
public void Load(SettingsStorage storage)
diagramSocketType.Load(storage)
Load settings.
- storage
- Settings storage.
protected override bool OnEquals(DiagramSocketType other)
result = diagramSocketType.OnEquals(other)
Compare DiagramSocketType on the equivalence.
- other
- Another value with which to compare.
Returns: , if the specified object is equal to the current object, otherwise, .
protected virtual void OnPropertyChanged(string propertyName)
diagramSocketType.OnPropertyChanged(propertyName)
To call the connection property value change event.
- propertyName
- Property name.
public static DiagramSocketType RegisterType<T>(string name, Color color)
result = DiagramSocketType.RegisterType(name, color)
To register the connection type.
- name
- The name of the connection type.
- color
- The connection color.
Returns: Connection type.
public void Save(SettingsStorage storage)
diagramSocketType.Save(storage)
Save settings.
- storage
- Settings storage.
public override string ToString()
result = diagramSocketType.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.
Events
public event PropertyChangedEventHandler PropertyChanged
diagramSocketType.PropertyChanged += handler
The connection properties value change event.
Fields
public static readonly DiagramSocketType BasketBlackScholes
value = DiagramSocketType.BasketBlackScholes
Black scholes.
public static readonly DiagramSocketType BlackScholes
value = DiagramSocketType.BlackScholes
Black scholes.
public static readonly DiagramSocketType CandleStates
value = DiagramSocketType.CandleStates
Candle state.
public static readonly DiagramSocketType Comparable
value = DiagramSocketType.Comparable
Comparable values.
public static readonly DiagramSocketType IndicatorValue
value = DiagramSocketType.IndicatorValue
Indicator value.
public static readonly DiagramSocketType MarketDepth
value = DiagramSocketType.MarketDepth
Market depth.
public static readonly DiagramSocketType MyTrade
value = DiagramSocketType.MyTrade
Own trade.
public static readonly DiagramSocketType OrderFail
value = DiagramSocketType.OrderFail
Order fail.
public static readonly DiagramSocketType OrderState
value = DiagramSocketType.OrderState
Order state.
public static readonly DiagramSocketType Portfolio
value = DiagramSocketType.Portfolio
Portfolio.
public static readonly DiagramSocketType Position
value = DiagramSocketType.Position
Position.
public static readonly DiagramSocketType Security
value = DiagramSocketType.Security
Security.
public static readonly DiagramSocketType Strategy
value = DiagramSocketType.Strategy
Strategy.
public static readonly DiagramSocketType String
value = DiagramSocketType.String
Text string.