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);
        }
 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;
 }
        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); });
        }