Beispiel #1
0
 public void DisplayHtmlForm(HtmlPageSettingsParameters setting, ICollection <ConnectorParameters> buttons)
 => this.flowDataCache.ScreenSettings = new ScreenSettings <HtmlPageSettingsView>
                                        (
     mapper.Map <HtmlPageSettingsView>(setting),
     mapper.Map <IEnumerable <ConnectorParameters>, IEnumerable <CommandButtonView> >(buttons),
     ViewType.Html
                                        );
        public void DisplayHtmlForm([Comments("Configuration details for the form.")] HtmlPageSettingsParameters setting, [ListEditorControl(ListControlType.Connectors)] ICollection <ConnectorParameters> buttons)
        {
            HtmlPageSettingsView formView = this.mapper.Map <HtmlPageSettingsView>(setting);
            string dialogListItem         = formView.ContentTemplate != null
                ? formView.ContentTemplate.Title ?? string.Empty
                : formView?.MessageTemplate?.Message ?? string.Empty;

            this.screenData.ScreenSettings = new ScreenSettings <HtmlPageSettingsView>
                                             (
                formView,
                mapper.Map <IEnumerable <ConnectorParameters>, IEnumerable <CommandButtonView> >(buttons),
                ViewType.Html,
                new MenuItem {
                Text = dialogListItem, Icon = formView.Icon
            }
                                             );
        }