void AddExtensionPath(ExtensionPath path) { AddInTreeNode treePath = CreatePath(rootNode, path.Name); foreach (IEnumerable <Codon> innerCodons in path.GroupedCodons) { treePath.AddCodons(innerCodons); } }
void AddExtensionPath(ExtensionPath path) { AddInTreeNode treePath = null; if (path.ParentPathProperties != null) { treePath = CreatePath(rootNode, path.Name, path.ParentPathProperties); } else { treePath = CreatePath(rootNode, path.Name); } foreach (IEnumerable <Codon> innerCodons in path.GroupedCodons) { treePath.AddCodons(innerCodons); } }