Пример #1
0
        /// <summary>
        /// 初始化数据库mySql显示
        /// </summary>
        private void InitializeMySqlStore()
        {
            List <MySqlKLineStoreage> storeageList = USeManager.Instance.MySqlStoreageList;

            if (storeageList != null)
            {
                foreach (MySqlKLineStoreage storeage in storeageList)
                {
                    MQTTStoreageViewModel model = new MQTTStoreageViewModel();
                    model.Name = storeage.StoreageName;
                    m_MqttStoreStateList.Add(model);
                }
            }
        }
Пример #2
0
        private void showMySqlRealStoreInfo()
        {
            List <MySqlKLineStoreage> mySqlMarketDataStoreageList = USeManager.Instance.MySqlStoreageList;

            foreach (MySqlKLineStoreage storage in mySqlMarketDataStoreageList)
            {
                MQTTStoreageViewModel model = GetMQTTViewModel(storage.StoreageName);
                if (model != null)
                {
                    model.StoreCount      = storage.StoreCount;
                    model.UnstoreCount    = storage.UnStoreCount;
                    model.ErrorStoreCount = storage.ErrorStoreCount;
                }
            }
        }