示例#1
0
        private void PopulateResults(RxConceptGroup[] conceptGroup)
        {
            var section = new Section();

            if (conceptGroup.Any())
            {
                foreach (var concept in conceptGroup.SelectMany(x => x.rxConcept))
                {
                    var element = new DrugSearchResultElement(concept, PushDrugViewController);
                    section.Add(element);
                }
            }
            else
            {
                section.Add(new StringElement("No Results Found."));
            }

            Root.Clear();
            Root.Add(section);

            this.ReloadData();

            HideSearchingView();
        }
        private void PopulateResults(RxConceptGroup[] conceptGroup)
        {
            var section = new Section();

            if(conceptGroup.Any()) {
                foreach(var concept in conceptGroup.SelectMany(x=>x.rxConcept)) {
                    var element = new DrugSearchResultElement(concept, PushDrugViewController);
                    section.Add(element);
                }
            }
            else {
                section.Add(new StringElement("No Results Found."));
            }

            Root.Clear();
            Root.Add(section);

            this.ReloadData();

            HideSearchingView();
        }