Example #1
0
 public DescriptorBase(ShapeProvider provider, ICustomTypeDescriptor parentdescriptor, Type objectType)
     : base(parentdescriptor)
 {
     this.provider = provider;
     this.type     = objectType;
     mProperties   = new PropertyDescriptorCollection(null);
 }
 public DescriptorBase(ShapeProvider provider, ICustomTypeDescriptor parentdescriptor, Type objectType)
     : base(parentdescriptor)
 {
     this.provider = provider;
     this.type = objectType;
     mProperties = new PropertyDescriptorCollection(null);
 }
Example #3
0
        protected DiagramControlBase()
        {
            //create the provider for all shapy diagram elements
            ShapeProvider provider = new ShapeProvider();

            TypeDescriptor.AddProvider(provider, typeof(SimpleShapeBase));
        }
Example #4
0
 public SimpleShapeDescriptor(ShapeProvider provider, Type type)
     : base(provider, type)
 {
     this.AddProperty("Demo", typeof(int));
 }
Example #5
0
 public ShapeBaseDescriptor(ShapeProvider provider, Type objectType)
     : base(provider, objectType)
 {
     AddBaseProperties();
 }
 public SimpleShapeDescriptor(ShapeProvider provider, Type type)
     : base(provider, type)
 {
     this.AddProperty("Demo", typeof(int));
 }
 public ShapeBaseDescriptor(ShapeProvider provider, Type objectType)
     : base(provider, objectType)
 {
     AddBaseProperties();
 }
 protected DiagramControlBase()
 {
     //create the provider for all shapy diagram elements
     ShapeProvider provider = new ShapeProvider();
     TypeDescriptor.AddProvider(provider, typeof(SimpleShapeBase));
 }