Exemple #1
0
        public FormBuilderControlActionsFactory DefaultAction(FormBuilderControlActionType defaultAction)
        {
            _defaultActions = new List <FormBuilderControlActionType> {
                defaultAction
            };

            return(this);
        }
Exemple #2
0
        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;
        }