/// <summary> /// 创建行情数据处理器。 /// </summary> private void CreateMarketDataFileStorage() { try { NameValueCollection settings = ConfigurationManager.GetSection("MarketDataFileStore") as NameValueCollection; string savePath = settings["savePath"]; if (string.IsNullOrEmpty(savePath)) { throw new ArgumentException("Not found KLineFileStore/savePath"); } Debug.Assert(m_tradeCalendarManager != null); FileMarketDataStorage marketDataFileStorage = new FileMarketDataStorage(savePath, m_tradeCalendarManager); marketDataFileStorage.Notify += OnNotifyEventArrived; m_marketDataFileStorage = marketDataFileStorage; string text = String.Format("{0} Create {1} OK.", this, marketDataFileStorage); m_eventLogger.WriteInformation(text); } catch (Exception ex) { string text = "Create MarketDataFileStorage object failed, " + ex.Message; throw new ApplicationException(text, ex); } }
private void ShowMarketDataStoreInfo() { FileMarketDataStorage store = USeManager.Instance.MarketDataFileStorage; this.lblMarketDataFileStorage_StoreCount.Text = store.StoreCount.ToString(); this.lblMarketDataFileStorage_UnStoreCount.Text = store.UnStoreCount.ToString(); this.lblMarketDataFileStorage_ErrorStoreCount.Text = store.ErrorStoreCount.ToString(); }