Ejemplo n.º 1
0
 public void RemoveSection(Removal removal)
 {
     if (this._saved)
     {
         throw new AccessViolationException("Document has already saved. Can not continue processing!");
     }
     this._processor.RemoveSection(removal);
 }
Ejemplo n.º 2
0
        public void RemoveSection(Removal removal)
        {
            var dict = removal.Dict;

            if (dict.Keys.Count != 0)
            {
                var keys = dict.Keys.ToList();
                for (int i = 0; i < keys.Count; i++)
                {
                    var from = keys[i];
                    var to   = dict[from];
                    this.ReomveElementsBySection(from, to);
                }
            }
        }