public override object Clone() { bsFormGroupSingle groupSingle = base.Clone() as bsFormGroupSingle; groupSingle.CustomInput = CustomInput.Clone() as bmInput; return(groupSingle); }
public override ahsDom[] GetChilds() { ChildsNodes.Clear(); bsFormGroupSingle groupSingle; foreach (bmInput input in CustomInputs) { groupSingle = new bsFormGroupSingle() { IsHorisontal = false }; if (UseCustomisation) { groupSingle.CustomInput = new bmCustomInput(input); } else { groupSingle.CustomInput = input.Clone() as bmInput; } if (IsInline) { groupSingle.CustomInput.IsHorisontalStyle = IsInline; if (groupSingle.CustomInput.Input.GetType().IsSubclassOf(typeof(ahsCheckableInputs))) { groupSingle.AddCSS("form-check-inline"); ChildsNodes.AddRange(groupSingle.GetChilds()); } else { groupSingle.AddCSS(("col " + input.AddedWrapCSS).Trim()); ChildsNodes.Add(groupSingle); } } else { ChildsNodes.AddRange(groupSingle.GetChilds()); } } return(base.GetChilds()); }