Ejemplo n.º 1
0
 internal FormControl(FormControlType type, string id, FormControlSelectableType selectableType,
                      Type selectableSection, string q, bool req)
 {
     SelectableType    = selectableType;
     SelectableSection = selectableSection;
     Type     = type;
     Id       = id;
     Question = q;
     Required = req;
 }
Ejemplo n.º 2
0
        private FormControl AddControlInternal(FormControlType type, string id, string q = "", bool req = false, FormControlSelectableType selectableType = FormControlSelectableType.Unknown, Type selectableSection = null)
        {
            var fc = new FormControl(type, id, selectableType, selectableSection, q, req);

            _controls.Add(id, fc);
            return(fc);
        }
Ejemplo n.º 3
0
 public FormControl AddSelectableControl(string id, FormControlSelectableType selectableType, Type enumType, string q = "", bool req = false)
 {
     return(AddControlInternal(FormControlType.Selectable, id, q, req, selectableType, enumType));
 }