private void addDiagrams(IComposite leaf) { DiagramCreationContext context = new DiagramCreationContext(); foreach (String i in utiliti.fm.GetFiles(leaf.GetPath())) { leaf.Add((IComposite)context.CreateDiagram(i)); } }