Ejemplo n.º 1
0
        public void StartSection(Section section)
        {
            try
            {
                INode parent = _nodes.Peek();
                if (section.Description.IsNotEmpty())
                {
                    parent.AddComment(section.Description);
                }

                INode element = parent.AddChild(section.FixtureName);
                _nodes.Push(element);
            }
            catch (Exception e)
            {
                throw new ApplicationException(
                          "Could not create element for Section '{0}'".ToFormat(section.FixtureName), e);
            }
        }