コード例 #1
0
 public AccountInfoControl()
 {
     InitializeComponent();
     //var fund = MessageHandlerContainer.DefaultInstance.Get<TraderExHandler>().FundVM;
     FundListView.ItemsSource = FundVMCollection;
     mColumns = ColumnObject.GetColumns(FundListView);
 }
コード例 #2
0
        public OPHedgeLV()
        {
            InitializeComponent();
            PositionListView.ItemsSource = MessageHandlerContainer.
                                           DefaultInstance.Get <TraderExHandler>().PositionVMCollection;

            mColumns = ColumnObject.GetColumns(PositionListView);
        }
コード例 #3
0
        public TDExecutionWindow()
        {
            InitializeComponent();

            ExecutionTreeView.ItemsSource = MessageHandlerContainer.
                                            DefaultInstance.Get <TraderExHandler>().OrderVMCollection;

            mColumns = ColumnObject.GetColumns(ExecutionTreeView);
        }
コード例 #4
0
 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;
 }
コード例 #5
0
 public OPPositionLV()
 {
     InitializeComponent();
     _viewSource.Source = MessageHandlerContainer.DefaultInstance
                          .Get <TraderExHandler>().PositionVMCollection;
     PositionListView.ItemsSource    = _viewSource.View;
     _filterSettingsWin.OnFiltering += _filterSettingsWin_OnFiltering;
     mColumns = ColumnObject.GetColumns(PositionListView);
 }
コード例 #6
0
        public TradingDeskOTC()
        {
            InitializeComponent();

            Quotes = new ObservableCollection <TradingDeskOTCViewModel>();
            QuoteListView.ItemsSource  = Quotes;
            QuoteListView2.ItemsSource = Quotes;

            mColumns = ColumnObject.GetColumns(QuoteListView);
            mColumns = ColumnObject.GetColumns(QuoteListView2);
        }
コード例 #7
0
        public OTCExecutionWindow()
        {
            InitializeComponent();

            mColumns = ColumnObject.GetColumns(ExecutionTreeView);


            ExecutionVMCollection         = new ExecutionCollection(this);
            ExecutionTreeView.ItemsSource = TraderExHandler.Instance.ExecutionVMCollection =
                ExecutionVMCollection;
        }
コード例 #8
0
        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;
        }
コード例 #9
0
 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;
 }
コード例 #10
0
        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;
            }
        }
コード例 #11
0
        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); });
        }