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; }
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); }
public FormControl AddSelectableControl(string id, FormControlSelectableType selectableType, Type enumType, string q = "", bool req = false) { return(AddControlInternal(FormControlType.Selectable, id, q, req, selectableType, enumType)); }