public bool addSection(CutSection cut) { List <CutSection> old = new List <CutSection>(cuts); cuts.Add(cut); try { try { cuts.Sort(); } catch (InvalidOperationException e) { throw e.InnerException; } } catch (OverlappingSectionException) { cuts = old; return(false); } return(true); }
public void remove(CutSection cutSection) { cuts.Remove(cutSection); }