public void StartUp()
        {
            //var service = ContextRegistry.GetContext()["MarketDataService"] as MarketDataService;
            _marketDataController = ContextRegistry.GetContext()["MarketDataController"] as MarketDataController;

            //_marketDataController = new MarketDataController(service);
        }
        /// <summary>
        /// Constructors
        /// </summary>
        public DashboardViewModel()
        {
            _marketDataController     = ContextRegistry.GetContext()["MarketDataController"] as MarketDataController;
            _orderExecutionController = ContextRegistry.GetContext()["OrderExecutionController"] as OrderExecutionController;

            _providersViewModel = new ProvidersViewModel();
            _servicesViewModel  = new ServicesViewModel();

            EventSystem.Subscribe <string>(OnApplicationClose);
        }
 public void SetUp()
 {
     _marketDataController  = ContextRegistry.GetContext()["MarketDataController"] as MarketDataController;
     _persistenceController = new DataPersistenceController();
     _persistenceController.SavePersistInformation(false, true);
 }