Ejemplo n.º 1
0
        //-----------------------------------------------------------------------------------------
        void FavoritesToUI()
        {
            TaxonTreeNode root = TaxonUtils.OriginalRoot;

            if (root == null)
            {
                return;
            }

            List <TaxonTreeNode> favFound = new List <TaxonTreeNode>();

            foreach (string fav in Favorites)
            {
                TaxonTreeNode taxon = root.FindTaxonByFullName(fav);
                if (taxon != null)
                {
                    favFound.Add(taxon);
                }
            }
            TaxonUtils.FavoritesSet(favFound);
        }