Beispiel #1
0
        /// <summary>
        /// 初始化MQTT显示
        /// </summary>
        private void InitializeMQTTStore()
        {
            List <MQTTMarketDataStoreage> storeageList = USeManager.Instance.MQTTMarketDataStoreageList;

            if (storeageList != null)
            {
                foreach (MQTTMarketDataStoreage storeage in storeageList)
                {
                    KLineStoreStateViewModel model = new KLineStoreStateViewModel();
                    model.Name = storeage.StoreageName;
                    m_klineStoreState.Add(model);
                }
            }
        }
Beispiel #2
0
        private void ShowKLineStoaresInfo()
        {
            List <KLineStoreage> sotreages = USeManager.Instance.KLineStorages;

            foreach (KLineStoreage storage in sotreages)
            {
                KLineStoreStateViewModel model = GetKLineStoreViewModel(storage.StorageName);
                if (model != null)
                {
                    model.StoreCount      = storage.StoreCount;
                    model.UnstoreCount    = storage.UnStoreCount;
                    model.ErrorStoreCount = storage.ErrorStoreCount;
                }
            }
        }
Beispiel #3
0
        private void showMQTTRealMarketDataStoreInfo()
        {
            List <MQTTMarketDataStoreage> mqttMarketDataStoreageList = USeManager.Instance.MQTTMarketDataStoreageList;

            foreach (MQTTMarketDataStoreage storage in mqttMarketDataStoreageList)
            {
                KLineStoreStateViewModel model = GetMQTTViewModel(storage.StoreageName);
                if (model != null)
                {
                    model.StoreCount      = storage.StoreCount;
                    model.UnstoreCount    = storage.UnStoreCount;
                    model.ErrorStoreCount = storage.ErrorStoreCount;
                }
            }
        }
Beispiel #4
0
        private void InitializeKLineStoer()
        {
            m_klineStoreState.Clear();
            List <KLineStoreage> storeageList = USeManager.Instance.KLineStorages;

            if (storeageList != null)
            {
                foreach (KLineStoreage storeage in storeageList)
                {
                    KLineStoreStateViewModel model = new KLineStoreStateViewModel();
                    model.Name = storeage.StorageName;
                    m_klineStoreState.Add(model);
                }
            }
            this.gridKLineStore.AutoGenerateColumns = false;
            this.gridKLineStore.DataSource          = m_klineStoreState;
        }