ConnectorWindow

StockSharp.Xaml

The window for new connections creating IMessageAdapter.

Inherits: ThemedWindow

Implements: IAsyncPersistable, IComponentConnector

Constructors

ConnectorWindow
public ConnectorWindow()
connectorWindow = ConnectorWindow()

Initializes a new instance of the ConnectorWindow.

Properties

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

Adapter aggregator.

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

Auto connect.

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

Visual description of available connections.

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

Selected adapter.

Methods

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

Returns: 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

Returns: Task

Fields

EnableCommand
public static readonly RoutedCommand EnableCommand
value = ConnectorWindow.EnableCommand

RoutedCommand to enable connection.

RemoveCommand
public static readonly RoutedCommand RemoveCommand
value = ConnectorWindow.RemoveCommand

RoutedCommand for the connection removal.

SelectedAdapterProperty
public static readonly DependencyProperty SelectedAdapterProperty
value = ConnectorWindow.SelectedAdapterProperty

DependencyProperty for SelectedAdapter.