public void RemoveEntry(SectionModel model) { lst.RemoveAll(x => x == model); map = new TimingMap(); foreach (var x in from a in lst select a.ClassTiming) { map = TimingMap.Union(map, new TimingMap(x)); } }
public void UpdateMap_NewEntry(SectionModel sm) { lst.Add(sm); map = TimingMap.Union(map, new TimingMap(sm.ClassTiming)); }