Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="aValue"></param>
        public void AddValue(LogValue aValue)
        {
            lock (this)
            {
                /*
                 * if (m_Values.Count > 0)
                 * {
                 *  if (aValue == m_Values[m_Values.Count - 1])
                 *  {
                 *      return;
                 *  }
                 * }
                 * */

                if (aValue.Value < m_Minimum)
                {
                    m_Minimum = aValue.Value;
                }
                if (aValue.Value > m_Maximum)
                {
                    m_Maximum = aValue.Value;
                }

                m_Values.Add(aValue);
            }
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="aValue"></param>
        public void AddValue(String aName, LogValue aValue)
        {
            lock (this)
            {
                m_Dirty = true;

                if (m_Time == DateTime.MinValue)
                {
                    m_Time = aValue.Time;
                }

                foreach (PlotterValues Values in m_Values)
                {
                    if (Values.Name == aName)
                    {
                        Values.AddValue(aValue);
                        return;
                    }
                }

                // Not found, add the value
                PlotterValues NewValues = new PlotterValues(aName);
                NewValues.AddValue(aValue);
                m_Values.Add(NewValues);
            }
        }