I am working on a user-defined button, this has two custom properties like this:
public enum FirstType
{
egg,
leg
}
// first property:
public FirstType FirstProperty { get; set; }
and I have a base class and 5 derived classes of this base class, and the second property will refer to one of these 5,
//second property
public BaseClass SecondProperty { get; set; }
Now my question is: how can I have a drop down list of these 5 classes for the second property in properties window like the first one? Is it possible?
OK,I used
enumto solve my problem, first a property of this enum type, then called those classes insetstatement of the property. Thanks to all.