DevTreks.Data/Helpers/LinqHelpers.cs
/// <summary>
/// Sets the linkedViews list  isselectedaddin property = true
/// </summary>
Sets the linkedViews list  isselectedaddin property = true
Sets the linkedViews list isselectedaddin property = true
public static bool SetLinkedViewIsSelectedAddIn(ContentURI uri,
           int linkedViewId)
        {
            bool bHasIsSelectedMember = false;
            if (uri.URIDataManager.LinkedView != null)
            {
                foreach (var linkedviewparent in uri.URIDataManager.LinkedView)
                {
                    foreach (ContentURI linkedview in linkedviewparent)
                    {
                        if (linkedview.URIId == linkedViewId)
                        {
                            if (AddInHelper.IsAddIn(linkedview))
                            {
                                linkedview.URIDataManager.IsSelectedLinkedAddIn = true;
                                bHasIsSelectedMember = true;
                                return bHasIsSelectedMember;
                            }
                        }
                    }
                }
            }
            return bHasIsSelectedMember;
        }
public static bool SetLinkedViewIsSelectedAddIn ( ContentURI uri , int linkedViewId ) { bool bHasIsSelectedMember = false ; if ( uri . URIDataManager . LinkedView != null ) { foreach ( var linkedviewparent in uri . URIDataManager . LinkedView ) { foreach ( ContentURI linkedview in linkedviewparent ) { if ( linkedview . URIId == linkedViewId ) { if ( AddInHelper . IsAddIn ( linkedview ) ) { linkedview . URIDataManager . IsSelectedLinkedAddIn = true ; bHasIsSelectedMember = true ; return bHasIsSelectedMember ; } } } } } return bHasIsSelectedMember ; }
Sets the linkedViews list  isselectedaddin property = true
Sets the linkedViews list isselectedaddin property = true
//refactor with query syntax //linked addins must have hostnames and addinnames
uri
ContentURI
linkedViewId
int