protected virtual TransformerTypeCollection CreateAvailableTransformers()
 {
     TransformerTypeCollection types = new TransformerTypeCollection();
     foreach (Type type in RuntimeConfig.GetConfig().WebParts.Transformers.GetTransformerEntries().Values)
     {
         types.Add(type);
     }
     return types;
 }
예제 #2
0
        protected virtual TransformerTypeCollection CreateAvailableTransformers() {
            TransformerTypeCollection availableTransformers = new TransformerTypeCollection();

            WebPartsSection configSection = RuntimeConfig.GetConfig().WebParts;

            IDictionary transformers = configSection.Transformers.GetTransformerEntries();

            foreach (Type type in transformers.Values) {
                availableTransformers.Add(type);
            }

            return availableTransformers;
        }