/// <summary>
        ///   Initializes a new instance of the <see cref = "SampleViewModel" /> class.
        /// </summary>
        public SampleViewModel(Dispatcher dispatcher)
        {
            _uiDispatcher = dispatcher;
            itemsPooler = new ItemsPooler(_uiDispatcher);
            itemsPooler.AddItem += ItemsPoolerAddItem;
            itemsPooler.RemoveItem += ItemsPoolerRemoveItem;
            itemsPooler.AddLog += ItemsPoolerAddLog;
            DataSourceStrategies = new List<StrategyAdapter>(itemsPooler.GetStrategiesSourceScopeOne());
            DataSourceMarkets = itemsPooler.GetMarketsSourceScopeOne();
            DataSourceString = itemsPooler.GetStringSourceScopeOne();
            DataSourceInt = itemsPooler.GetIntSourceScopeOne();
            startPooling = new RelayCommand(ExecuteStartPooling);
            _stopPooling = new RelayCommand(ExecuteStopPooling);
            _clearData = new RelayCommand(ExecuteClearData);
            _insertItem = new RelayCommand(ExecuteInsertItem);
            RealTimeDataSourceStrategies = new ObservableCollection<StrategyAdapter>();
            InvokePropertyChanged(new PropertyChangedEventArgs("LstMarkets"));
            InvokePropertyChanged(new PropertyChangedEventArgs("ProductsReferential"));
            InvokePropertyChanged(new PropertyChangedEventArgs("StrategyStatusReferential"));
            InvokePropertyChanged(new PropertyChangedEventArgs("StrategyTypesReferential"));
            InvokePropertyChanged(new PropertyChangedEventArgs("DirectionReferential"));
            InvokePropertyChanged(new PropertyChangedEventArgs("ManualItem"));


        }
 /// <summary>
 ///   Initializes a new instance of the <see cref = "SampleViewModel" /> class.
 /// </summary>
 public SampleViewModel(Dispatcher dispatcher)
 {
     _uiDispatcher                = dispatcher;
     itemsPooler                  = new ItemsPooler(_uiDispatcher);
     itemsPooler.AddItem         += ItemsPoolerAddItem;
     itemsPooler.RemoveItem      += ItemsPoolerRemoveItem;
     itemsPooler.AddLog          += ItemsPoolerAddLog;
     DataSourceStrategies         = new List <StrategyAdapter>(itemsPooler.GetStrategiesSourceScopeOne());
     DataSourceMarkets            = itemsPooler.GetMarketsSourceScopeOne();
     DataSourceString             = itemsPooler.GetStringSourceScopeOne();
     DataSourceInt                = itemsPooler.GetIntSourceScopeOne();
     startPooling                 = new RelayCommand(ExecuteStartPooling);
     _stopPooling                 = new RelayCommand(ExecuteStopPooling);
     _clearData                   = new RelayCommand(ExecuteClearData);
     _insertItem                  = new RelayCommand(ExecuteInsertItem);
     RealTimeDataSourceStrategies = new ObservableCollection <StrategyAdapter>();
     InvokePropertyChanged(new PropertyChangedEventArgs("LstMarkets"));
     InvokePropertyChanged(new PropertyChangedEventArgs("ProductsReferential"));
     InvokePropertyChanged(new PropertyChangedEventArgs("StrategyStatusReferential"));
     InvokePropertyChanged(new PropertyChangedEventArgs("StrategyTypesReferential"));
     InvokePropertyChanged(new PropertyChangedEventArgs("DirectionReferential"));
     InvokePropertyChanged(new PropertyChangedEventArgs("ManualItem"));
 }