コード例 #1
0
 public Form(Action<FormBuilder> formBuilder, FormSettings settings, object htmlAttributes)
 {
     _settings = settings;
     if (htmlAttributes != null) HtmlAttributes = new HtmlAttributes(htmlAttributes);
     if (formBuilder != null) formBuilder(new FormBuilder(this));
 }
コード例 #2
0
 public static Form Form(this HtmlHelper html, FormSettings settings, Action<FormBuilder> formBuilder, object htmlAttributes = null)
 {
     return new Form(formBuilder, settings, htmlAttributes);
 }