BuySellGrid
StockSharp.Xaml
Табличный элемент управления, содержащий набор BuySellPanel.
Наследует: UserControl
Реализует: IPersistable, IComponentConnector
Конструкторы
BuySellGrid
public BuySellGrid()
buySellGrid = BuySellGrid()
Инициализирует новый экземпляр BuySellGrid.
Свойства
MarketDataProvider
public IMarketDataProvider MarketDataProvider { get; set; }
value = buySellGrid.MarketDataProvider
buySellGrid.MarketDataProvider = value
Поставщик рыночных данных.
Portfolios
public PortfolioDataSource Portfolios { get; set; }
value = buySellGrid.Portfolios
buySellGrid.Portfolios = value
Доступные портфели.
SecurityProvider
public ISecurityProvider SecurityProvider { get; set; }
value = buySellGrid.SecurityProvider
buySellGrid.SecurityProvider = value
Поставщик информации об инструментах.
Методы
AddPanel
public BuySellPanel AddPanel(Security security)
result = buySellGrid.AddPanel(security)
Добавить панель.
- security
- финансовый инструмент.
Возвращает: Панель операций покупки/продажи.
InitializeComponent
public void InitializeComponent()
buySellGrid.InitializeComponent()
InitializeComponent
Load
public void Load(SettingsStorage storage)
buySellGrid.Load(storage)
Загрузить настройки.
- storage
- Хранилище настроек.
RemovePanel
public void RemovePanel(BuySellPanel panel)
buySellGrid.RemovePanel(panel)
Снимите панель.
- panel
- Панель операций покупки/продажи.
Save
public void Save(SettingsStorage storage)
buySellGrid.Save(storage)
Сохраните настройки.
- storage
- Хранилище настроек.
События
OrderRegistering
public event Action<Security, Portfolio, Sides, decimal, decimal> OrderRegistering
buySellGrid.OrderRegistering += handler
Событие регистрации заказа.
PanelAdded
public event Action<BuySellPanel> PanelAdded
buySellGrid.PanelAdded += handler
Панель добавила событие.
PanelRemoved
public event Action<BuySellPanel> PanelRemoved
buySellGrid.PanelRemoved += handler
Панель удалила событие.