Ejemplo n.º 1
0
        public void AddParameterPage(Page page, UseToReplaceIn useToReplaceIn, ParameterContext pContext)
        {
            var pInPage = new ParameterInPage(this, page, pContext, useToReplaceIn);

            if (FindMatchingParameterInPage(pInPage) == null)
            {
                UsedInPPages.Add(pInPage);
            }
        }
Ejemplo n.º 2
0
        public void AddParameterPage(Page page, UseToReplaceIn useToReplaceIn, string replaceValue, string replaceWith)
        {
            var pInPage = new ParameterInPage(this, page, ParameterContext.Default, useToReplaceIn, replaceValue, replaceWith);

            if (FindMatchingParameterInPage(pInPage) == null)
            {
                UsedInPPages.Add(pInPage);
            }
        }
Ejemplo n.º 3
0
 private ParameterInPage FindMatchingParameterInPage(ParameterInPage pInPage)
 {
     return(UsedInPPages.FirstOrDefault(pip => pip.Page == pInPage.Page && pip.ParameterTarget == pInPage.ParameterTarget));
 }
Ejemplo n.º 4
0
 public static bool IsListValueParameter(ParameterContext pContext)
 {
     return(ParameterInPage.IsListValueParameter(pContext));
 }