public void GetTaxonTree(int taxonId) { ITaxon taxon = CoreData.TaxonManager.GetTaxon(UserContext, taxonId); //CoreData.TaxonManager.GetTaxonTrees() ITaxonTreeNode taxonTreeNode = taxon.GetTaxonTree(UserContext, true); TaxonList childTaxa = taxonTreeNode.GetChildTaxa(); ITaxonTreeNode taxonTreeNode2 = taxon.GetChildTaxonTree(UserContext, true); TaxonList childTaxa2 = taxonTreeNode.GetChildTaxa(); }
/// <summary> /// Init information about taxon trees. /// </summary> /// <param name="userContext">User context.</param> /// <param name="taxon">Taxon.</param> public void InitTaxonTree(IUserContext userContext, ITaxon taxon) { TaxonTree = taxon.GetTaxonTree(userContext, !IsInvalidTaxaUsed()); _allSpeciesFacts = null; _taxonTrees = null; }