public void AddHtmlInput(HtmlInputBase inputField, HtmlParagragh helpBlock=null ){ ControlDiv.AddHtmlTag(inputField); if (helpBlock!=default(HtmlParagragh)){ if(helpBlock.Class.IsNullOrEmpty() ) helpBlock.Class="help-block"; ControlDiv.AddHtmlTag(helpBlock); } }
public void AddHtmlCheckboxInput(Action<HtmlCheckboxInput, HtmlParagragh> configAction ){ HtmlCheckboxInput hi = new HtmlCheckboxInput(); HtmlParagragh p = new HtmlParagragh(); configAction(hi,p); AddHtmlInput(hi,p); }