Esempio n. 1
0
 public override void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     base.GetObjectData(info, context);
     Trend[] trendArray = null;
     if (this.m_trends.Count > 0)
     {
         trendArray = new Trend[this.m_trends.Count];
         for (int i = 0; i < trendArray.Length; i++)
         {
             trendArray[i] = this.m_trends[i];
         }
     }
     info.AddValue("Trends", trendArray);
 }
Esempio n. 2
0
        public virtual object Clone()
        {
            Trend trend = (Trend)base.MemberwiseClone();

            trend.m_items = new ItemCollection();
            foreach (Item item in this.m_items)
            {
                trend.m_items.Add(item.Clone());
            }
            trend.m_timestamps = new ItemTimeCollection();
            foreach (DateTime time in this.m_timestamps)
            {
                trend.m_timestamps.Add(time);
            }
            trend.m_subscription = null;
            trend.m_playback     = null;
            return(trend);
        }
Esempio n. 3
0
 public void Insert(int index, Trend value)
 {
     this.Insert(index, value);
 }
Esempio n. 4
0
 public int IndexOf(Trend value)
 {
     return(this.IndexOf(value));
 }
Esempio n. 5
0
 public bool Contains(Trend value)
 {
     return(this.Contains(value));
 }
Esempio n. 6
0
 public int Add(Trend value)
 {
     return(this.Add(value));
 }
Esempio n. 7
0
 public void Remove(Trend value)
 {
     this.Remove(value);
 }