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 (Exception) { _cuts = old; return(false); } return(true); }
public void RemoveSection(CutSection cutSection) { _cuts.Remove(cutSection); }