Esempio n. 1
0
        public override void Modify(object templateInstance, MemberInfo info, TemplateContext ctx)
        {
            base.Modify(templateInstance, info, ctx);
            foreach (var property in ((IDiagramNode)ctx.DataObject).PersistedItems.OfType <GenericTypedChildItem>())
            {
                var type = property.Type;
                if (type == null)
                {
                    continue;
                }

                ctx.TryAddNamespace(type.Namespace);
            }
        }
Esempio n. 2
0
 public override void Modify(object templateInstance, MemberInfo info, TemplateContext ctx)
 {
     base.Modify(templateInstance, info, ctx);
     ctx.TryAddNamespace(Namespace);
 }