/// <summary> /// The constructor will setup the property editor based on the attribute if one is found /// </summary> public PropertyEditor() { //assign properties based on the attribute if it is found _attribute = GetType().GetCustomAttribute <PropertyEditorAttribute>(false); if (_attribute != null) { //set the id/name from the attribute Alias = _attribute.Alias; Name = _attribute.Name; IsParameterEditor = _attribute.IsParameterEditor; } }
/// <summary> /// The constructor will setup the property editor based on the attribute if one is found /// </summary> public PropertyEditor() { //assign properties based on the attribute if it is found _attribute = GetType().GetCustomAttribute<PropertyEditorAttribute>(false); if (_attribute != null) { //set the id/name from the attribute Alias = _attribute.Alias; Name = _attribute.Name; IsParameterEditor = _attribute.IsParameterEditor; } }
/// <summary> /// The constructor will setup the property editor based on the attribute if one is found /// </summary> public PropertyEditor() { //defaults Icon = Constants.Icons.PropertyEditor; Group = "common"; //assign properties based on the attribute if it is found _attribute = GetType().GetCustomAttribute <PropertyEditorAttribute>(false); if (_attribute != null) { //set the id/name from the attribute Alias = _attribute.Alias; Name = _attribute.Name; IsParameterEditor = _attribute.IsParameterEditor; Icon = _attribute.Icon; Group = _attribute.Group; IsDeprecated = _attribute.IsDeprecated; } }