DiagramSocket

StockSharp.Diagram

Connection.

Inherits: Disposable

Implements: INotifyPropertyChanged

Constructors

DiagramSocket(DiagramSocketDirection, string)

Initializes a new instance of the DiagramSocket.

Properties

Action : Action<DiagramSocketValue>

Socket action.

AvailableTypes : IList<DiagramSocketType>

Available input data types.

Direction : DiagramSocketDirection

The connection direction.

GuiWrapper : INotifyPropertyChanged

Gui wrapper for property binding.

Id : string

The connection identifier.

IsBreak : bool

Is socket has break.

IsBreakActive : bool

Is socket break active.

IsConnected : bool

Is socket has connections.

IsDynamic : bool

Dynamic sockets are removed during Load().

IsInput : bool

Is input.

IsOutput : bool

Is output.

IsSelected : bool

Is socket selected.

LinkableMaximum : int

The maximum number of connections.

Name : string

The connection name.

Parent : DiagramElement

The socket parent element.

Type : DiagramSocketType

Connection type.

Value : object

The current value.

Methods

CanConnect(DiagramSocket) : bool

To check the ability to make a connection.

to
Connection.

Returns: The test result.

CanConnectFrom(DiagramSocket) : bool

To check the ability to make a connection.

from
Connection.

Returns: The test result.

Connect(DiagramSocket)

Invoke Connected event.

other
DiagramSocket
Disconnect(DiagramSocket)

Invoke Connected event.

other
DiagramSocket
DisposeManaged()

Release resources.

OnPropertyChanged(string)

To call the connection property value change event.

propertyName
Property name.
ToString() : string

Преобразовать к строковому представлению.

Returns: Строковое представление.

Events

CanConnectEx : Func<DiagramSocket, bool>

Extra validation for the ability to make a connection.

Connected : Action<DiagramSocket, DiagramSocket>

The event of the socket connection with another one.

Disconnected : Action<DiagramSocket, DiagramSocket>

The socket disconnection event.

PropertyChanged : PropertyChangedEventHandler

The connection properties value change event.