コード例 #1
0
 public object FindControl(string controlID)
 {
     return(ElementBase.GetElement(this.GetControls().FirstOrDefault(c => c["id"].ToStringObj() == controlID), null, this.ID, false));
 }
コード例 #2
0
 public ColumnHtml(JObject obj, HtmlElementHelperModel helper, Guid dynamicFormId, bool isFormReadOnly) : base(obj, helper, dynamicFormId)
 {
     this.children =
         obj["children"].Select(c => ElementBase.GetElement((JObject)c, helper, dynamicFormId, isFormReadOnly))
         .Where(c => c != null /**for cheking controls having not access **/).ToList();
 }
コード例 #3
0
 /// <summary>
 /// this method set HtmlElement to ColumnHtml and RowHtml and ContentHtml
 /// </summary>
 /// <param name="_helper">if set null it does not fill element values.</param>
 public ContentHtml(JObject obj, HtmlElementHelperModel _helper, Guid dynamicFormId, bool isFormReadOnly) : base(obj, _helper, dynamicFormId)
 {
     this.Rows = obj["rows"].Select(c => ElementBase.GetElement((JObject)c, _helper, dynamicFormId, isFormReadOnly)).ToList();
 }