public AccountInfoControl() { InitializeComponent(); //var fund = MessageHandlerContainer.DefaultInstance.Get<TraderExHandler>().FundVM; FundListView.ItemsSource = FundVMCollection; mColumns = ColumnObject.GetColumns(FundListView); }
public OPHedgeLV() { InitializeComponent(); PositionListView.ItemsSource = MessageHandlerContainer. DefaultInstance.Get <TraderExHandler>().PositionVMCollection; mColumns = ColumnObject.GetColumns(PositionListView); }
public TDExecutionWindow() { InitializeComponent(); ExecutionTreeView.ItemsSource = MessageHandlerContainer. DefaultInstance.Get <TraderExHandler>().OrderVMCollection; mColumns = ColumnObject.GetColumns(ExecutionTreeView); }
public void Initialize() { _viewSource.Source = TradeHandler?.TradeVMCollection; TradeTreeView.ItemsSource = _viewSource.View; mColumns = ColumnObject.GetColumns(TradeTreeView); TradeHandler.TradeVMCollection.Clear(); TradeHandler.QueryTrade(); FilterSettingsWin.UserID = TradeHandler.MessageWrapper?.User.Id; }
public OPPositionLV() { InitializeComponent(); _viewSource.Source = MessageHandlerContainer.DefaultInstance .Get <TraderExHandler>().PositionVMCollection; PositionListView.ItemsSource = _viewSource.View; _filterSettingsWin.OnFiltering += _filterSettingsWin_OnFiltering; mColumns = ColumnObject.GetColumns(PositionListView); }
public TradingDeskOTC() { InitializeComponent(); Quotes = new ObservableCollection <TradingDeskOTCViewModel>(); QuoteListView.ItemsSource = Quotes; QuoteListView2.ItemsSource = Quotes; mColumns = ColumnObject.GetColumns(QuoteListView); mColumns = ColumnObject.GetColumns(QuoteListView2); }
public OTCExecutionWindow() { InitializeComponent(); mColumns = ColumnObject.GetColumns(ExecutionTreeView); ExecutionVMCollection = new ExecutionCollection(this); ExecutionTreeView.ItemsSource = TraderExHandler.Instance.ExecutionVMCollection = ExecutionVMCollection; }
public void Initialize() { _viewSource.Source = TradeHandler.PositionVMCollection; PositionListView.ItemsSource = _viewSource.View; mColumns = ColumnObject.GetColumns(PositionListView); TradeHandler.PositionVMCollection.Clear(); TradeHandler.QueryPosition(); TradeHandler.PositionVMCollection.CollectionChanged += PositionCollectionChanged; MarketDataHandler.OnNewMarketData += OnNewMarketData; FilterSettingsWin.UserID = TradeHandler.MessageWrapper?.User.Id; }
public void Initialize() { _viewSource.Source = TradeHandler?.OrderVMCollection; ExecutionTreeView.ItemsSource = _viewSource.View; mColumns = ColumnObject.GetColumns(ExecutionTreeView); ExecutionChanged = _viewSource.View as ICollectionViewLiveShaping; if (ExecutionChanged.CanChangeLiveFiltering) { ExecutionChanged.LiveFilteringProperties.Add("Status"); ExecutionChanged.IsLiveFiltering = true; } TradeHandler.OrderVMCollection.Clear(); TradeHandler.QueryOrder(); FilterSettingsWin.UserID = TradeHandler.MessageWrapper?.User.Id; }
public void Initialize() { _viewSource.Source = QuoteVMCollection; quoteListView.ItemsSource = _viewSource.View; mColumns = ColumnObject.GetColumns(quoteListView); FilterSettingsWin.UserID = MarketDataHandler.MessageWrapper.User.Id; FutureOptionList.AddRange(ClientDbContext.GetContractFromCache((int)ProductType.PRODUCT_FUTURE)); FutureOptionList.AddRange(ClientDbContext.GetContractFromCache((int)ProductType.PRODUCT_OPTIONS)); QuoteChanged = _viewSource.View as ICollectionViewLiveShaping; if (QuoteChanged.CanChangeLiveFiltering) { QuoteChanged.LiveFilteringProperties.Add("Exchange"); QuoteChanged.LiveFilteringProperties.Add("Contract"); QuoteChanged.IsLiveFiltering = true; } }
public void Initialize() { _viewSource.Source = QuoteVMCollection; quoteListView.ItemsSource = _viewSource.View; mColumns = ColumnObject.GetColumns(quoteListView); FilterSettingsWin.UserID = MarketDataHandler.MessageWrapper?.User.Id; //FutureOptionList.AddRange(ClientDbContext.GetContractFromCache((int)ProductType.PRODUCT_FUTURE)); //FutureOptionList.AddRange(ClientDbContext.GetContractFromCache((int)ProductType.PRODUCT_OPTIONS)); QuoteChanged = _viewSource.View as ICollectionViewLiveShaping; if (QuoteChanged.CanChangeLiveFiltering) { QuoteChanged.LiveFilteringProperties.Add("Exchange"); QuoteChanged.LiveFilteringProperties.Add("Contract"); QuoteChanged.IsLiveFiltering = true; } //contractTextBox.Provider = new SuggestionProvider((string c) => { return FutureOptionList.Where(ci => ci.Contract.StartsWith(c, true, null)).Select(cn => cn.Contract); }); }