public bool AddElement(DocElement element) { if (element is Annotation) { Annotation ann = element as Annotation; if (active && ann.IsEnd) finished = true; if (!active && ann.ReferenceId == m_dataObject.Id && ann.IsStart) active = true; } if (active) AddCompletedObject(element); if (finished) active = false; return !finished; }
public bool AddElement(DocElement element) { string typeName = element.GetType().Name; IncrementCount(typeName, element.IsStart, element.IsEnd); elements.Add(element); return true; }
public bool AddElement(DocElement element) { this.AddCompletedObject(element); return true; }
private void AddObject(DocElement newObject) { m_consumer.AddElement(newObject); }