Class DiagramSocket
Connection.
Implements
Namespace: StockSharp.Xaml.Diagram
Assembly: StockSharp.Xaml.Diagram.dll
Syntax
public class DiagramSocket : Disposable, INotifyPropertyChanged
Constructors
DiagramSocket(DiagramSocketDirection, String)
Initializes a new instance of the DiagramSocket.
Declaration
public DiagramSocket(DiagramSocketDirection dir, string socketId = null)
Parameters
Type | Name | Description |
---|---|---|
DiagramSocketDirection | dir | |
String | socketId |
Properties
AvailableTypes
Available input data types.
Declaration
public IList<DiagramSocketType> AvailableTypes { get; }
Property Value
Type | Description |
---|---|
IList<DiagramSocketType> |
ConnectedToSockets
Other socket if this one is connected.
Declaration
public IEnumerable<DiagramSocket> ConnectedToSockets { get; }
Property Value
Type | Description |
---|---|
IEnumerable<DiagramSocket> |
Directon
The connection direction.
Declaration
public DiagramSocketDirection Directon { get; }
Property Value
Type | Description |
---|---|
DiagramSocketDirection |
GuiWrapper
Gui wrapper for property binding.
Declaration
public INotifyPropertyChanged GuiWrapper { get; }
Property Value
Type | Description |
---|---|
INotifyPropertyChanged |
Id
The connection identifier.
Declaration
public string Id { get; protected set; }
Property Value
Type | Description |
---|---|
String |
IsBreak
Is socket has break.
Declaration
public bool IsBreak { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsBreakActive
Is socket break active.
Declaration
public bool IsBreakActive { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsDynamic
Dynamic sockets are removed during Load().
Declaration
public bool IsDynamic { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsInput
Is input.
Declaration
public bool IsInput { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsOutput
Is output.
Declaration
public bool IsOutput { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsSelected
Is socket selected.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
LinkableMaximum
The maximum number of connections.
Declaration
public int LinkableMaximum { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Name
The connection name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Parent
The socket parent element.
Declaration
public DiagramElement Parent { get; set; }
Property Value
Type | Description |
---|---|
DiagramElement |
Type
Connection type.
Declaration
public DiagramSocketType Type { get; set; }
Property Value
Type | Description |
---|---|
DiagramSocketType |
Value
The current value.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
Object |
Methods
DisposeManaged()
Declaration
protected override void DisposeManaged()
OnPropertyChanged(String)
To call the connection property value change event.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName | Property name. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Events
Connected
The event of the socket connection with another one.
Declaration
public event Action<DiagramSocket, DiagramSocket> Connected
Event Type
Type | Description |
---|---|
Action<DiagramSocket, DiagramSocket> |
Disconnected
The socket disconnection event.
Declaration
public event Action<DiagramSocket, DiagramSocket> Disconnected
Event Type
Type | Description |
---|---|
Action<DiagramSocket, DiagramSocket> |
PropertyChanged
The connection properties value change event.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |