public void PrependKey(string key) { if (IsIndex) { Key = key; if (Title == "Index") { Title = KeyWithinParent.Capitalize(); } } else { Key = key + "/" + Key; } _children.Each(x => x.PrependKey(key)); }
public void AddChild(Topic topic) { topic.Parent = this; _children.Add(topic); if (!IsIndex) { topic.PrependKey(Key); } }