/// <summary> /// Erzeugt eine exakte Kopie dieser Liste. /// </summary> /// <returns>Die gewünschte Kopie.</returns> public OrderedEntries Clone() { // Create var clone = new OrderedEntries(); // Finish clone.m_Events.AddRange(m_Events); // Report return(clone); }
/// <summary> /// Add a single EPG event. /// </summary> /// <param name="newEvent">A new event.</param> public void Add(ProgramGuideEntry newEvent) { // Create the key var key = newEvent.Source; // Attach to holder if (!m_Events.TryGetValue(key, out OrderedEntries events)) { m_Events.Add(key, events = new OrderedEntries()); } // Forward events.Add(newEvent); }