ConnectorWindow

StockSharp.Xaml

新建连接窗口, 创建 IMessageAdapter 。

继承自: ThemedWindow

实现: IAsyncPersistable, IComponentConnector

构造函数

ConnectorWindow
public ConnectorWindow()
connectorWindow = ConnectorWindow()

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

属性

Adapter
public BasketMessageAdapter Adapter { get; set; }
value = connectorWindow.Adapter
connectorWindow.Adapter = value

适配器聚合器.

AutoConnect
public bool AutoConnect { get; set; }
value = connectorWindow.AutoConnect
connectorWindow.AutoConnect = value

自动连接。

ConnectorsInfo
public IList<ConnectorInfo> ConnectorsInfo { get; }
value = connectorWindow.ConnectorsInfo

可用连接的可视化描述 。

SelectedAdapter
public IMessageAdapter SelectedAdapter { get; set; }
value = connectorWindow.SelectedAdapter
connectorWindow.SelectedAdapter = value

选中适配器 。

方法

InitializeComponent
public void InitializeComponent()
connectorWindow.InitializeComponent()

InitializeComponent

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = connectorWindow.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

返回值: Task

OnClosing
protected override void OnClosing(CancelEventArgs e)
connectorWindow.OnClosing(e)
SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = connectorWindow.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

返回值: Task

字段

EnableCommand
public static readonly RoutedCommand EnableCommand
value = ConnectorWindow.EnableCommand

RoutedCommand to enable connection.

RemoveCommand
public static readonly RoutedCommand RemoveCommand
value = ConnectorWindow.RemoveCommand

用于连接去除的 RoutedCommand 。

SelectedAdapterProperty
public static readonly DependencyProperty SelectedAdapterProperty
value = ConnectorWindow.SelectedAdapterProperty

DependencyProperty 为SelectedAdapter.