BuySellGrid

StockSharp.Xaml

Table control, containing set of BuySellPanel.

Inherits: UserControl

Implements: IAsyncPersistable, IComponentConnector

Constructors

BuySellGrid
public BuySellGrid()
buySellGrid = BuySellGrid()

Initializes a new instance of the BuySellGrid.

Properties

MarketDataProvider
public IMarketDataProvider MarketDataProvider { get; set; }
value = buySellGrid.MarketDataProvider
buySellGrid.MarketDataProvider = value

The market data provider.

Panels
public IEnumerable<BuySellPanel> Panels { get; }
value = buySellGrid.Panels

Panels.

Portfolios
public PortfolioDataSource Portfolios { get; set; }
value = buySellGrid.Portfolios
buySellGrid.Portfolios = value

Available portfolios.

SecurityProvider
public ISecurityProvider SecurityProvider { get; set; }
value = buySellGrid.SecurityProvider
buySellGrid.SecurityProvider = value

The provider of information about instruments.

Methods

AddPanel
public BuySellPanel AddPanel(Security security)
result = buySellGrid.AddPanel(security)

Add panel.

security
Security.

Returns: Buy/sell operations panel.

ClearPanels
public void ClearPanels()
buySellGrid.ClearPanels()

Remove all BuySellPanel.

InitializeComponent
public void InitializeComponent()
buySellGrid.InitializeComponent()

InitializeComponent

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

RemovePanel
public void RemovePanel(BuySellPanel panel)
buySellGrid.RemovePanel(panel)

Remove panel.

panel
Buy/sell operations panel.
SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = buySellGrid.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

Events

OrderRegistering
public event Action<Security, Portfolio, Sides, decimal, decimal> OrderRegistering
buySellGrid.OrderRegistering += handler

The order registration event.

PanelAdded
public event Action<BuySellPanel> PanelAdded
buySellGrid.PanelAdded += handler

Panel added event.

PanelRemoved
public event Action<BuySellPanel> PanelRemoved
buySellGrid.PanelRemoved += handler

Panel removed event.