private void RemoveParents(int level)
 {
     while (ParentStack.Count > level)
     {
         ParentStack.Pop();
     }
 }
 private void SetSameLevel(string line)
 {
     ParentStack.Pop();
     WriteChild(line);
     ParentStack.Push(line);
 }