Beispiel #1
0
        private void AddPropertiesToWrangler(ResultWrangler wrangler, Principal group, List <KeyValuePair <string, XElement> > PropertyTemplates)
        {
            wrangler.NewResult();

            //if properties have been specified in the xml, query them directly in order
            if (PropertyTemplates.Count != 0)
            {
                foreach (KeyValuePair <string, XElement> template in PropertyTemplates)
                {
                    FormattedProperty prop = new FormattedProperty(template.Value);
                    prop.Input = PropertyInterogation.GetStringFromPropertyValue(group, template.Key);
                    wrangler.AddFormattedProperty(prop);
                }
            }
        }