Beispiel #1
0
 public void RemoveFromDataBuffer(int OutputID)
 {
     if (GraphDataBuffer.ContainsKey(OutputID))
     {
         ClearDataBufferForDataType(OutputID);
     }
     if (_dataTime.ContainsKey(OutputID))
     {
         _dataTime[OutputID] = 0;
     }
 }
Beispiel #2
0
        public void AddToDataBuffer(int OutputID)
        {
            if (GraphDataBuffer.ContainsKey(OutputID))
            {
                ClearDataBufferForDataType(OutputID);
            }
            else
            {
                GraphDataBuffer.TryAdd(OutputID, new ConcurrentQueue <DataProfile>());
            }

            if (_dataTime.ContainsKey(OutputID))
            {
                _dataTime[OutputID] = 0;
            }
            else
            {
                _dataTime.Add(OutputID, 0);
            }
        }