/// <summary> /// Add a summary to the collection. /// </summary> /// <param name="newSummary">The summary to be added.</param> public static void AddSummary(MediaHighwaySummary newSummary) { foreach (MediaHighwaySummary oldSummary in Summaries) { if (oldSummary.EventID == newSummary.EventID && oldSummary.ShortDescription == newSummary.ShortDescription) { return; } if (oldSummary.EventID > newSummary.EventID) { Summaries.Insert(Summaries.IndexOf(oldSummary), newSummary); return; } } Summaries.Add(newSummary); }