BuySellGrid
StockSharp.Xaml
Controle de tabela, contendo conjunto de BuySellPanel.
Herda de: UserControl
Implementa: IPersistable, IComponentConnector
Construtores
BuySellGrid
public BuySellGrid()
buySellGrid = BuySellGrid()
Inicializa uma nova instância do BuySellGrid.
Propriedades
MarketDataProvider
public IMarketDataProvider MarketDataProvider { get; set; }
value = buySellGrid.MarketDataProvider
buySellGrid.MarketDataProvider = value
O fornecedor de dados de mercado.
Portfolios
public PortfolioDataSource Portfolios { get; set; }
value = buySellGrid.Portfolios
buySellGrid.Portfolios = value
Portfolios disponíveis.
SecurityProvider
public ISecurityProvider SecurityProvider { get; set; }
value = buySellGrid.SecurityProvider
buySellGrid.SecurityProvider = value
O fornecedor de informações sobre instrumentos.
Métodos
AddPanel
public BuySellPanel AddPanel(Security security)
result = buySellGrid.AddPanel(security)
Adicionar painel.
- security
- Instrumento financeiro.
Retorna: Painel de operações de compra/venda.
InitializeComponent
public void InitializeComponent()
buySellGrid.InitializeComponent()
InitializeComponent
Load
public void Load(SettingsStorage storage)
buySellGrid.Load(storage)
Carregar as configurações.
- storage
- Configuração do armazenamento.
RemovePanel
public void RemovePanel(BuySellPanel panel)
buySellGrid.RemovePanel(panel)
Remover painel.
- panel
- Painel de operações de compra/venda.
Save
public void Save(SettingsStorage storage)
buySellGrid.Save(storage)
Gravar as definições.
- storage
- Configuração do armazenamento.
Eventos
OrderRegistering
public event Action<Security, Portfolio, Sides, decimal, decimal> OrderRegistering
buySellGrid.OrderRegistering += handler
O evento de registo da ordem.
PanelAdded
public event Action<BuySellPanel> PanelAdded
buySellGrid.PanelAdded += handler
Evento adicionado pelo painel.
PanelRemoved
public event Action<BuySellPanel> PanelRemoved
buySellGrid.PanelRemoved += handler
Evento removido pelo painel.