Пример #1
0
 private static void addInstance(TreeNode instancesRoot, InstanceDetail instance)
 {
     TreeNode instanceNode = instancesRoot.Nodes.Add("Name: " + instance.Name);
     if (instance.Name != instance.Description)
     {
         instanceNode.Nodes.Add("Description: " + instance.Description);
     }
     if (instance.ConcreteType != null)
     {
         instanceNode.Nodes.Add("ConcreteType: " + instance.ConcreteType.AsCSharp());
     }
 }
Пример #2
0
        private static void addInstance(TreeNode instancesRoot, InstanceDetail instance)
        {
            TreeNode instanceNode = instancesRoot.Nodes.Add("Name: " + instance.Name);

            if (instance.Name != instance.Description)
            {
                instanceNode.Nodes.Add("Description: " + instance.Description);
            }
            if (instance.ConcreteType != null)
            {
                instanceNode.Nodes.Add("ConcreteType: " + instance.ConcreteType.AsCSharp());
            }
        }
 public PluginTypeDetail(Type type, Type buildPolicyType, InstanceDetail[] instanceDetails)
 {
     _type = type;
     _buildPolicyType = buildPolicyType;
     this.instanceDetails = instanceDetails;
 }