public void Add(ScoreDocument doc) { _isUpdating = true; var historyEntry = new HistoryEntry(doc); foreach (var olderEntry in History.Where(e => e.Title == historyEntry.Title).ToList()) { History.Remove(olderEntry); } History.Add(historyEntry); _isUpdating = false; SaveHistory(); }
public void Remove(HistoryEntry historyEntry) { History.Remove(historyEntry); }