예제 #1
0
        public PositionsViewModel()
        {
            InitialiseViewModel();

            _positions = new ObservableCollection <IgPublicApiData.PositionModel>();

            // Initialise LS subscriptions
            _l1PricesSubscription = new L1PricesSubscription(this);

            // initialise the LS SubscriptionTableKeys
            _l1PositionPricesTableKey = new SubscribedTableKey();

            // Important to initialise to null.
            _l1PositionPricesTableKey = null;
        }
예제 #2
0
        public WatchlistsViewModel()
        {
            _watchlists       = new ObservableCollection <IgPublicApiData.WatchlistModel>();
            _watchlistMarkets = new ObservableCollection <IgPublicApiData.WatchlistMarketModel>();

            // Initialise to first index in datagrid.
            WatchlistIndex       = 0;
            WatchlistMarketIndex = 0;

            WireCommands();

            _l1PricesSubscription = new L1PricesSubscription(this);

            _watchlistL1PricesSubscribedTableKey = new SubscribedTableKey();
            _watchlistL1PricesSubscribedTableKey = null;
        }
예제 #3
0
        public WatchlistsViewModel()
        {           
            _watchlists = new ObservableCollection<IgPublicApiData.WatchlistModel>();
            _watchlistMarkets = new ObservableCollection<IgPublicApiData.WatchlistMarketModel>();

            // Initialise to first index in datagrid.
            WatchlistIndex = 0;
            WatchlistMarketIndex = 0;

            WireCommands();
            
            _l1PricesSubscription = new L1PricesSubscription(this);                                  

            _watchlistL1PricesSubscribedTableKey = new SubscribedTableKey();
            _watchlistL1PricesSubscribedTableKey = null;
        }
예제 #4
0
        public PositionsViewModel()
        {
            InitialiseViewModel();
                                           
            _positions = new ObservableCollection<IgPublicApiData.PositionModel>();            

            // Initialise LS subscriptions                      
            _l1PricesSubscription = new L1PricesSubscription(this);

            // initialise the LS SubscriptionTableKeys           
            _l1PositionPricesTableKey = new SubscribedTableKey();

            // Important to initialise to null.
            _l1PositionPricesTableKey = null;
        }