Beispiel #1
0
        private static FormRenderOptions Build(Action <FormRenderOptions> configuration)
        {
            var options = new FormRenderOptions();

            configuration(options);
            return(options);
        }
Beispiel #2
0
 protected FormViewRenderer(FormRenderOptions options)
 {
     ViewLocation          = options.ViewPath ?? throw new ArgumentNullException(nameof(options.ViewPath));
     BizForm               = options.BizForm ?? throw new ArgumentNullException(nameof(options.BizForm));
     FormattedViewLocation = string.Format(ViewLocation, BizForm.FormName);
 }