Class DiagramSocket
Connection.
Implements
Namespace: StockSharp.Xaml.Diagram
Assembly: StockSharp.Xaml.Diagram.dll
Syntax
public class DiagramSocket : Disposable, INotifyPropertyChanged
Constructors
DiagramSocket(DiagramSocketDirection, String)
Создать DiagramSocket.
Declaration
public DiagramSocket(DiagramSocketDirection dir, string socketId = null)
Parameters
Type | Name | Description |
---|---|---|
DiagramSocketDirection | dir | |
String | socketId |
Properties
AvailableTypes
Доступные типы входящих данных.
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
Направление соединения.
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
Идентификатор соединения.
Declaration
public string Id { get; protected set; }
Property Value
Type | Description |
---|---|
String |
IsBreak
Имеет ли сокет точку останова.
Declaration
public bool IsBreak { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsBreakActive
Активна ли точка останова на сокете.
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
Входящее.
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
Максимальное число подключений.
Declaration
public int LinkableMaximum { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Name
Название подключения.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Parent
Родительский элемент сокета.
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
Текущее значение.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
Object |
Methods
DisposeManaged()
Declaration
protected override void DisposeManaged()
OnPropertyChanged(String)
Вызвать событие изменения значения свойства соединения.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName | Название свойства. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Events
Connected
Событие соединения сокета с другим.
Declaration
public event Action<DiagramSocket, DiagramSocket> Connected
Event Type
Type | Description |
---|---|
Action<DiagramSocket, DiagramSocket> |
Disconnected
Событие отсоединения сокета.
Declaration
public event Action<DiagramSocket, DiagramSocket> Disconnected
Event Type
Type | Description |
---|---|
Action<DiagramSocket, DiagramSocket> |
PropertyChanged
Событие изменения значения свойств соединения.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |