Ejemplo n.º 1
0
 public void UpdateSortScopeAndTargetReference(AutomaticSubtotalContext context)
 {
     if (this.m_sortExpressionScopeString != null)
     {
         this.m_sortExpressionScopeString = context.GetNewScopeName(this.m_sortExpressionScopeString);
     }
     if (this.m_sortTargetString != null)
     {
         this.m_sortTargetString = context.GetNewScopeName(this.m_sortTargetString);
         if (this.m_sortTarget != null)
         {
             ISortFilterScope sortTarget = null;
             if (context.TryGetNewSortTarget(this.m_sortTargetString, out sortTarget))
             {
                 this.SetSortTarget(sortTarget);
             }
         }
     }
 }
Ejemplo n.º 2
0
 internal void UpdateSortScopeAndTargetReference(AutomaticSubtotalContext context)
 {
     if (m_sortExpressionScopeString != null)
     {
         m_sortExpressionScopeString = context.GetNewScopeName(m_sortExpressionScopeString);
     }
     if (m_sortTargetString == null)
     {
         return;
     }
     m_sortTargetString = context.GetNewScopeName(m_sortTargetString);
     if (m_sortTarget != null)
     {
         ISortFilterScope target = null;
         if (context.TryGetNewSortTarget(m_sortTargetString, out target))
         {
             SetSortTarget(target);
         }
     }
 }