Пример #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);
 }
Пример #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);
        }
Пример #3
0
 public void Insert(int index, Trend value)
 {
     this.Insert(index, value);
 }
Пример #4
0
 public int IndexOf(Trend value)
 {
     return(this.IndexOf(value));
 }
Пример #5
0
 public bool Contains(Trend value)
 {
     return(this.Contains(value));
 }
Пример #6
0
 public int Add(Trend value)
 {
     return(this.Add(value));
 }
Пример #7
0
 public void Remove(Trend value)
 {
     this.Remove(value);
 }