Exemplo n.º 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 (Exception)
            {
                _cuts = old;
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
 public void RemoveSection(CutSection cutSection)
 {
     _cuts.Remove(cutSection);
 }