Beispiel #1
0
        private void UpdateTopResult(SearchMemberGroup memberGroup)
        {
            if (memberGroup == null)
            {
                TopResult = null;
                return;
            }

            var topMemberGroup = new SearchMemberGroup(memberGroup.FullyQualifiedName);
            topMemberGroup.AddMember(memberGroup.Members.First());

            TopResult = topMemberGroup;
        }
Beispiel #2
0
        private void UpdateTopResult(SearchMemberGroup memberGroup)
        {
            if (memberGroup == null)
            {
                TopResult = null;
                return;
            }

            var topMemberGroup = new SearchMemberGroup(memberGroup.FullyQualifiedName);

            // Clone top node.
            var topNode = new NodeSearchElementViewModel(memberGroup.Members.FirstOrDefault());
            topNode.IsSelected = true;            

            topMemberGroup.AddMember(topNode);
            TopResult = topMemberGroup;

            selectionNavigator.UpdateRootCategories(SearchRootCategories, topNode);            
        }