DiagramSocket

StockSharp.Diagram

连接。

继承自: Disposable

实现: INotifyPropertyChanged

构造函数

DiagramSocket
public DiagramSocket(DiagramSocketDirection dir, string socketId)
diagramSocket = DiagramSocket(dir, socketId)

初始化了 & ##DiagramSocket+#的新实例.

属性

Action
public Action<DiagramSocketValue> Action { get; set; }
value = diagramSocket.Action
diagramSocket.Action = value

套接字动作 。

AvailableTypes
public IList<DiagramSocketType> AvailableTypes { get; private set; }
value = diagramSocket.AvailableTypes
diagramSocket.AvailableTypes = value

现有输入数据类型。

Direction
public DiagramSocketDirection Direction { get; }
value = diagramSocket.Direction

连接方向.

GuiWrapper
public INotifyPropertyChanged GuiWrapper { get; }
value = diagramSocket.GuiWrapper

桂包装财产装订.

Id
public string Id { get; protected set; }
value = diagramSocket.Id
diagramSocket.Id = value

连接标识符 。

IsBreak
public bool IsBreak { get; set; }
value = diagramSocket.IsBreak
diagramSocket.IsBreak = value

插座有断层

IsBreakActive
public bool IsBreakActive { get; set; }
value = diagramSocket.IsBreakActive
diagramSocket.IsBreakActive = value

套接字已激活 。

IsConnected
public bool IsConnected { get; }
value = diagramSocket.IsConnected

套接字有连接 。

IsDynamic
public bool IsDynamic { get; set; }
value = diagramSocket.IsDynamic
diagramSocket.IsDynamic = value

动态套接字在装入( ) 时被移除 。

IsInput
public bool IsInput { get; }
value = diagramSocket.IsInput

输入

IsOutput
public bool IsOutput { get; }
value = diagramSocket.IsOutput

输出。

IsSelected
public bool IsSelected { get; set; }
value = diagramSocket.IsSelected
diagramSocket.IsSelected = value

已选择套接字 。

LinkableMaximum
public int LinkableMaximum { get; set; }
value = diagramSocket.LinkableMaximum
diagramSocket.LinkableMaximum = value

连接的最大数量 。

Name
public string Name { get; set; }
value = diagramSocket.Name
diagramSocket.Name = value

接通名.

Parent
public DiagramElement Parent { get; set; }
value = diagramSocket.Parent
diagramSocket.Parent = value

套接字父元素 。

Type
public DiagramSocketType Type { get; set; }
value = diagramSocket.Type
diagramSocket.Type = value

连接类型 。

Value
public object Value { get; set; }
value = diagramSocket.Value
diagramSocket.Value = value

现值.

方法

CanConnect
public bool CanConnect(DiagramSocket to)
result = diagramSocket.CanConnect(to)

以验能通通通相通.

to
连接。

返回值: 考证结果.

CanConnectFrom
public virtual bool CanConnectFrom(DiagramSocket from)
result = diagramSocket.CanConnectFrom(from)

以验能通通通相通.

from
连接。

返回值: 考证结果.

Connect
public void Connect(DiagramSocket other)
diagramSocket.Connect(other)

启动连接事件 。

other
DiagramSocket
Disconnect
public void Disconnect(DiagramSocket other)
diagramSocket.Disconnect(other)

启动连接事件 。

other
DiagramSocket
DisposeManaged
protected override void DisposeManaged()
diagramSocket.DisposeManaged()

释放资源。

OnPropertyChanged
private void OnPropertyChanged(string propertyName)
diagramSocket.OnPropertyChanged(propertyName)

呼叫连接属性值变化事件 。

propertyName
地产名.
ToString
public override string ToString()
result = diagramSocket.ToString()

转换为行代表.

返回值: 弦乐表演.

事件

CanConnectEx
public event Func<DiagramSocket, bool> CanConnectEx
diagramSocket.CanConnectEx += handler

额外验证连接能力.

Connected
public event Action<DiagramSocket, DiagramSocket> Connected
diagramSocket.Connected += handler

套接字连接到另一个的事件 。

Disconnected
public event Action<DiagramSocket, DiagramSocket> Disconnected
diagramSocket.Disconnected += handler

套接字断开事件 。

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
diagramSocket.PropertyChanged += handler

连接属性值变化事件 。