Example #1
0
 public void AddEntries(IList <Entry> forwards, IList <Entry> backwards, Action <int, int> notify = null)
 {
     if (notify == null)
     {
         forwardsSection.AddEntries(forwards, null);
         reverseSection.AddEntries(backwards, null);
     }
     else
     {
         forwardsSection.AddEntries(forwards, (i, n) => notify(i, n + backwards.Count));
         reverseSection.AddEntries(backwards, (i, n) => notify(i + forwards.Count, n + forwards.Count));
     }
 }