/// <summary> /// Copy the children of a section node. /// </summary> protected void CopyChildren(SectionNode destinationNode) { for (int i = 0; i < PhraseChildCount; ++i) { destinationNode.Insert((EmptyNode)PhraseChild(i).Copy(true), i); } for (int i = 0; i < SectionChildCount; ++i) { destinationNode.Insert((SectionNode)SectionChild(i).Copy(true, true), i); } }
/// <summary> /// A new phrase is being recorded, so create and return it. /// </summary> public PhraseNode StartRecordingPhrase(Events.Audio.Recorder.PhraseEventArgs e, SectionNode parent, int index) { PhraseNode phrase = CreatePhraseNode(e.Audio); parent.Insert(phrase, index); return(phrase); }