private void PurchaseAddBroker_Click(object sender, EventArgs e) { var BrokerListWin = new BrokerList(_Brokers, InvoiceBroker); BrokerListWin.ShowDialog(); RefreshList(); }
public BrokerList List() { var list = new BrokerList(); list.AddRange(this.ListHandler()); return(list); }
internal void OnTradingInfo(TradingInfoResponse message) { var brokers = message.Brokers.Select(b => new AvailableBrokerInfo(b.BrokerName, b.DataFeedName,b.Accounts, b.Url, (Data.Contracts.BrokerType)b.BrokerType)).ToList(); BrokerList?.Invoke(this, new EventArgs<List<AvailableBrokerInfo>>(brokers)); PortfolioList?.Invoke(this, new EventArgs<List<TradingService.Portfolio>>(message.Portfolios)); }