public FormBuilderControlActionsFactory DefaultAction(FormBuilderControlActionType defaultAction) { _defaultActions = new List <FormBuilderControlActionType> { defaultAction }; return(this); }
public static FormBuilderControlDisplay GetDisplayAttribute(this FormBuilderControlActionType type) { var fieldInfo = typeof(FormBuilderControlActionType).GetField(type.ToString()); if (fieldInfo != null) { var displayAttribute = Attribute.GetCustomAttribute(fieldInfo, typeof(FormBuilderControlDisplay)) as FormBuilderControlDisplay; return(displayAttribute); } return(null); }
public FormBuilderControlActionsFactory DefaultAction(FormBuilderControlActionType defaultAction) { _defaultActions = new List<FormBuilderControlActionType> { defaultAction }; return this; }