示例#1
0
        static public TrayStatus Error(string err)
        {
            TrayStatus r = new TrayStatus();

            r.Add(new DetailedData_Error(err));
            return(r);
        }
示例#2
0
        public TrayStatus GetCurrentAsTrayStatus()
        {
            DateTime   maxTime = list.Max(e => e.Timestamp);
            TrayStatus r       = new TrayStatus();

            foreach (TextAndTimestamp l1 in list)
            {
                r.__Add(maxTime, itemId, $"{maxTime} {l1.Text}");
            }
            return(r);
        }
示例#3
0
        public TrayStatus GetCurrentAsTrayStatus()
        {
            TrayStatus    r  = new TrayStatus();
            StringBuilder sb = new StringBuilder();

            foreach (string t1 in Texts)
            {
                sb.Append(t1 + " ");
            }
            r.__Add(Timestamp, this.ItemId, sb.ToString());
            return(r);
        }
示例#4
0
        public TrayStatus GetStatus()
        {
            lock (this)
            {
                TrayStatus r = new TrayStatus();

                foreach (KeyValuePair <eDisplayItem, IAddLine> i in IAddLines)
                {
                    r.Add(i.Value);
                }
                return(r);
            }
        }
示例#5
0
 public void AddRange(TrayStatus other)
 {
     this.TheList.AddRange(other.TheList);
 }