BuySellGrid
StockSharp.Xaml
Table control, containing set of BuySellPanel.
Inherits: UserControl
Implements: IPersistable, 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.
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.
InitializeComponent
public void InitializeComponent()
buySellGrid.InitializeComponent()
InitializeComponent
Load
public void Load(SettingsStorage storage)
buySellGrid.Load(storage)
Load settings.
- storage
- Settings storage.
RemovePanel
public void RemovePanel(BuySellPanel panel)
buySellGrid.RemovePanel(panel)
Remove panel.
- panel
- Buy/sell operations panel.
Save
public void Save(SettingsStorage storage)
buySellGrid.Save(storage)
Save settings.
- storage
- Settings storage.
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.