public void Add(MonitorSummary s) { foreach (MonitorItem i in s.ItemList) { this.Add(i); } }
public void Add(MonitorItem i) { if (i == null || i.securityid < 0) { return; } MonitorSummary s = new MonitorSummary(); s.Add(i); this.Add(s); }
public void Add(MonitorSummary s) { if (s == null || s.securityid < 0) { return; } //查找Summary是否存在 MonitorSummary sfind = this.SummaryList.Find(delegate(MonitorSummary sd) { return(sd.securityid == s.securityid); }); if (sfind == null) { this.SummaryList.Add(s); } else { sfind.Add(s); } }