Esempio n. 1
0
        public void AddToCurrentSelection(IEnumerable <RedListCategory> categories)
        {
            AnalysisSearchCriteria analysisSearchCriteria = new AnalysisSearchCriteria();

            analysisSearchCriteria.RedListCategories = categories.Select(x => (int)x).ToList();
            TaxonIdList taxonIdList = CoreData.AnalysisManager.GetTaxonIds(analysisSearchCriteria);

            MySettings.Filter.Taxa.AddTaxonIds(taxonIdList.GetIds());
        }
Esempio n. 2
0
        public void GetTaxaByRedListCategories(IEnumerable <RedListCategory> categories)
        {
            AnalysisSearchCriteria analysisSearchCriteria = new AnalysisSearchCriteria();

            analysisSearchCriteria.RedListCategories = categories.Select(x => (int)x).ToList();
            TaxonIdList currenTaxonIdList = GetTaxonIdListFromTaxaFilter();

            TaxonIdList taxonIdList = CoreData.AnalysisManager.GetTaxonIds(analysisSearchCriteria, currenTaxonIdList);

            MySettings.Filter.Taxa.ResetSettings();
            MySettings.Filter.Taxa.AddTaxonIds(taxonIdList.GetIds());
            int v = 8;
            //TaxonIdList taxonIds = CoreData.AnalysisManager.GetTaxonIds(searchCriteria);

            //TaxonListInformationManager.Instance.
            //CoreData.AnalysisManager
        }