Class DiagramSocketType
- Namespace
- StockSharp.Diagram
- Assembly
- StockSharp.Diagram.Core.dll
Connection type.
public class DiagramSocketType : Equatable<DiagramSocketType>, INotifyPropertyChanged, IPersistable
- Inheritance
-
DiagramSocketType
- Implements
-
IPersistable
- Extension Methods
Fields
Any
Unknown data type.
public static readonly DiagramSocketType Any
Field Value
BasketBlackScholes
Black scholes.
public static readonly DiagramSocketType BasketBlackScholes
Field Value
BlackScholes
Black scholes.
public static readonly DiagramSocketType BlackScholes
Field Value
Bool
Flag.
public static readonly DiagramSocketType Bool
Field Value
Candle
Candle.
public static readonly DiagramSocketType Candle
Field Value
CandleStates
Candle state.
public static readonly DiagramSocketType CandleStates
Field Value
Comparable
Comparable values.
public static readonly DiagramSocketType Comparable
Field Value
Date
Strategy.
public static readonly DiagramSocketType Date
Field Value
IndicatorValue
Indicator value.
public static readonly DiagramSocketType IndicatorValue
Field Value
MarketDepth
Market depth.
public static readonly DiagramSocketType MarketDepth
Field Value
MyTrade
Own trade.
public static readonly DiagramSocketType MyTrade
Field Value
Options
Options.
public static readonly DiagramSocketType Options
Field Value
Order
Order.
public static readonly DiagramSocketType Order
Field Value
OrderFail
Order fail.
public static readonly DiagramSocketType OrderFail
Field Value
OrderState
Order state.
public static readonly DiagramSocketType OrderState
Field Value
Portfolio
Portfolio.
public static readonly DiagramSocketType Portfolio
Field Value
Position
Position.
public static readonly DiagramSocketType Position
Field Value
Quote
Quote.
public static readonly DiagramSocketType Quote
Field Value
Security
Security.
public static readonly DiagramSocketType Security
Field Value
Side
Side.
public static readonly DiagramSocketType Side
Field Value
Strategy
Strategy.
public static readonly DiagramSocketType Strategy
Field Value
Time
Connector.
public static readonly DiagramSocketType Time
Field Value
Trade
Trade.
public static readonly DiagramSocketType Trade
Field Value
Unit
Numeric value.
public static readonly DiagramSocketType Unit
Field Value
Properties
AllTypes
All available connection types for elements.
public static IEnumerable<DiagramSocketType> AllTypes { get; }
Property Value
Color
The connection color.
public Color Color { get; }
Property Value
Name
The name of the connection type.
public string Name { get; }
Property Value
Type
Connection type.
public Type Type { get; }
Property Value
Methods
Clone()
Create a copy of DiagramSocketType.
public override DiagramSocketType Clone()
Returns
- DiagramSocketType
Copy.
GetSocketType(Type)
Get DiagramSocketType for Type.
public static DiagramSocketType GetSocketType(Type parameterType)
Parameters
parameterType
TypeType.
Returns
- DiagramSocketType
Diagram socket type.
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnEquals(DiagramSocketType)
Compare DiagramSocketType on the equivalence.
protected override bool OnEquals(DiagramSocketType other)
Parameters
other
DiagramSocketTypeAnother value with which to compare.
Returns
OnPropertyChanged(string)
To call the connection property value change event.
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
stringProperty name.
RegisterType<T>(string, Color)
To register the connection type.
public static DiagramSocketType RegisterType<T>(string name, Color color)
Parameters
Returns
- DiagramSocketType
Connection type.
Type Parameters
T
Data type.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()
Returns
Events
PropertyChanged
The connection properties value change event.
public event PropertyChangedEventHandler PropertyChanged