public static List <ReportControlConfig> Add(this List <ReportControlConfig> controls, string lable, string name, FormControlType type, string crossWidth, List <DropDownListItem> items, string value = "", string id = "") { var cfg = new ReportControlConfig(lable, id, name, value, type, crossWidth, items, -1); return(Add(controls, cfg)); }
public static List <ReportControlConfig> Add(this List <ReportControlConfig> controls, string lable, FormControlType type, string value = "", string id = "") { var cfg = new ReportControlConfig(lable, id, value, type, -1); return(Add(controls, cfg)); }
public static List <ReportControlConfig> Add(this List <ReportControlConfig> controls, string lable, List <DropDownListItem> items, string value = "", string id = "") { var cfg = new ReportControlConfig(lable, id, value, items, -1); return(Add(controls, cfg)); }
//base public static List <ReportControlConfig> Add(this List <ReportControlConfig> controls, ReportControlConfig newControl) { newControl.id = newControl.id.HasValue() ? newControl.id : DateTime.Now.Random(); newControl.sequence = controls.Count + 1; controls.Add(newControl); return(controls); }