static public TrayStatus Error(string err) { TrayStatus r = new TrayStatus(); r.Add(new DetailedData_Error(err)); return(r); }
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); }
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); }
public TrayStatus GetStatus() { lock (this) { TrayStatus r = new TrayStatus(); foreach (KeyValuePair <eDisplayItem, IAddLine> i in IAddLines) { r.Add(i.Value); } return(r); } }
public void AddRange(TrayStatus other) { this.TheList.AddRange(other.TheList); }