예제 #1
0
        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);
        }
예제 #2
0
 public void remove(CutSection cutSection)
 {
     cuts.Remove(cutSection);
 }