Class DiagramSocket
- Namespace
- StockSharp.Diagram
- Assembly
- StockSharp.Diagram.Core.dll
Connection.
public class DiagramSocket : Disposable, INotifyPropertyChanged
- Inheritance
-
DiagramSocket
- Implements
- Extension Methods
Constructors
DiagramSocket(DiagramSocketDirection, string)
Initializes a new instance of the DiagramSocket.
public DiagramSocket(DiagramSocketDirection dir, string socketId = null)
Parameters
dir
DiagramSocketDirectionsocketId
string
Properties
Action
Socket action.
public Action<DiagramSocketValue> Action { get; set; }
Property Value
AvailableTypes
Available input data types.
public IList<DiagramSocketType> AvailableTypes { get; }
Property Value
Directon
The connection direction.
public DiagramSocketDirection Directon { get; }
Property Value
GuiWrapper
Gui wrapper for property binding.
public INotifyPropertyChanged GuiWrapper { get; }
Property Value
Id
The connection identifier.
public string Id { get; protected set; }
Property Value
IsBreak
Is socket has break.
public bool IsBreak { get; set; }
Property Value
IsBreakActive
Is socket break active.
public bool IsBreakActive { get; set; }
Property Value
IsConnected
Is socket has connections.
public bool IsConnected { get; }
Property Value
IsDynamic
Dynamic sockets are removed during Load().
public bool IsDynamic { get; set; }
Property Value
IsInput
Is input.
public bool IsInput { get; }
Property Value
IsOutput
Is output.
public bool IsOutput { get; }
Property Value
IsSelected
Is socket selected.
public bool IsSelected { get; set; }
Property Value
LinkableMaximum
The maximum number of connections.
public int LinkableMaximum { get; set; }
Property Value
Name
The connection name.
public string Name { get; set; }
Property Value
Parent
The socket parent element.
public DiagramElement Parent { get; set; }
Property Value
Type
Connection type.
public DiagramSocketType Type { get; set; }
Property Value
Value
The current value.
public object Value { get; set; }
Property Value
Methods
CanConnect(DiagramSocket)
To check the ability to make a connection.
public bool CanConnect(DiagramSocket to)
Parameters
to
DiagramSocketConnection.
Returns
- bool
The test result.
CanConnectFrom(DiagramSocket)
To check the ability to make a connection.
public virtual bool CanConnectFrom(DiagramSocket from)
Parameters
from
DiagramSocketConnection.
Returns
- bool
The test result.
Connect(DiagramSocket)
Invoke Connected event.
public void Connect(DiagramSocket other)
Parameters
other
DiagramSocket
Disconnect(DiagramSocket)
Invoke Connected event.
public void Disconnect(DiagramSocket other)
Parameters
other
DiagramSocket
DisposeManaged()
protected override void DisposeManaged()
OnPropertyChanged(string)
To call the connection property value change event.
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
stringProperty name.
ToString()
public override string ToString()
Returns
Events
Connected
The event of the socket connection with another one.
public event Action<DiagramSocket, DiagramSocket> Connected
Event Type
Disconnected
The socket disconnection event.
public event Action<DiagramSocket, DiagramSocket> Disconnected
Event Type
PropertyChanged
The connection properties value change event.
public event PropertyChangedEventHandler PropertyChanged