DevTreks.Data/Helpers/LinqHelpers.cs
/// <summary>
/// Sets the linkedViews list  isselectedview property = true
/// </summary>
Sets the linkedViews list  isselectedview property = true
Sets the linkedViews list isselectedview property = true
public static bool SetLinkedViewIsSelectedView(ContentURI uri,
           string linkedViewCustomDocURIPattern)
        {
            bool bHasIsSelectedMember = false;
            string sLinkedViewId = ContentURI.GetURIPatternPart(linkedViewCustomDocURIPattern, 
                ContentURI.URIPATTERNPART.id);
            int iLinkedViewId = Helpers.GeneralHelpers.ConvertStringToInt(sLinkedViewId);
            if (uri.URIDataManager.LinkedView != null && iLinkedViewId != 0)
            {
                foreach (var linkedviewparent in uri.URIDataManager.LinkedView)
                {
                    foreach (ContentURI linkedview in linkedviewparent)
                    {
                        if (linkedview.URIId == iLinkedViewId)
                        {
                            if (!AddInHelper.IsAddIn(linkedview))
                            {
                                linkedview.URIDataManager.IsSelectedLinkedView = true;
                                bHasIsSelectedMember = true;
                                return bHasIsSelectedMember;
                            }
                        }
                    }
                }
            }
            return bHasIsSelectedMember;
        }
public static bool SetLinkedViewIsSelectedView ( ContentURI uri , string linkedViewCustomDocURIPattern ) { bool bHasIsSelectedMember = false ; string sLinkedViewId = ContentURI . GetURIPatternPart ( linkedViewCustomDocURIPattern , ContentURI . URIPATTERNPART . id ) ; int iLinkedViewId = Helpers . GeneralHelpers . ConvertStringToInt ( sLinkedViewId ) ; if ( uri . URIDataManager . LinkedView != null && iLinkedViewId != 0 ) { foreach ( var linkedviewparent in uri . URIDataManager . LinkedView ) { foreach ( ContentURI linkedview in linkedviewparent ) { if ( linkedview . URIId == iLinkedViewId ) { if ( ! AddInHelper . IsAddIn ( linkedview ) ) { linkedview . URIDataManager . IsSelectedLinkedView = true ; bHasIsSelectedMember = true ; return bHasIsSelectedMember ; } } } } } return bHasIsSelectedMember ; }
Sets the linkedViews list  isselectedview property = true
Sets the linkedViews list isselectedview property = true
//custom doc views can't be addins as well, custom docs need clear separation
uri
ContentURI
linkedViewCustomDocURIPattern
string