public FormContent(string name) { if (name == null) { throw new ArgumentNullException(); } this.name = name; container = null; hidden = null; cssClass = string.Empty; }
public FormGroup GetGroupByName(string name) { foreach (var g in Contents.OfType <FormGroup>()) { if (g.Name == name) { return(g); } FormGroup formGroup = g.GetGroup(name); if (formGroup != null) { return(formGroup); } } return(null); }
public FormGroup GetGroup(string path) { foreach (var g in Contents.OfType <FormGroup>()) { if (g.Path == path) { return(g); } FormGroup formGroup = g.GetGroup(path); if (formGroup != null) { return(formGroup); } } return(null); }