public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <SvgIconSelectorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Selected = this.Selected; _userControl.ClientValidationRules = this.ClientValidationRules; _userControl.SvgSpritePath = this.SvgSpritePath; _userControl.Required = this.Required; _userControl.SvgIdsOptions = new Dictionary <string, string>(); var pathToSvg = System.Web.HttpContext.Current.Server.MapPath(this.SvgSpritePath); if (C1File.Exists(pathToSvg)) { var xd = XDocument.Load(pathToSvg); XNamespace ns = "http://www.w3.org/2000/svg"; if (xd.Root != null) { foreach (var el in xd.Root.Element(ns + "defs").Elements(ns + "g")) { var idAttr = el.Attribute("id"); if (idAttr != null) { if (!_userControl.SvgIdsOptions.ContainsKey(idAttr.Value)) { _userControl.SvgIdsOptions.Add(idAttr.Value, idAttr.Value); } } } } } return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <FunctionParameterDesignerTemplateUserControlBase>(this.UiControlID); _userControl.SessionStateProvider = _sessionStateProvider; _userControl.SessionStateId = _sessionStateId; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <HtmlBlobTemplateUserControlBase>(this.UiControlID); _userControl.Html = this.Html; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <TextTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Text = this.Text; return(_userControl); }
public Control BuildWebControl() { ButtonTemplateUserControlBase userControl = _userControlType.ActivateAsUserControl <ButtonTemplateUserControlBase>(this.UiControlID); userControl.FormControlLabel = this.Label; userControl.FormControlClickEventHandler += this.ClickEventHandler; return(userControl); }
/// <exclude /> public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <FileUploadTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.UploadedFile = this.UploadedFile; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <QueryCallDefinitionsEditorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Queries = this.Queries; _userControl.Parameters = this.Parameters; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <PageReferenceSelectorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Selected = this.Selected; _userControl.ClientValidationRules = this.ClientValidationRules; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <TextEditorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Text = NormalizeLineFeeds(this.Text); _userControl.MimeType = this.MimeType; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <HeadingTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Title = this.Title; _userControl.Description = this.Description; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <CheckBoxTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Checked = this.Checked; _userControl.ItemLabel = this.ItemLabel; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <EnumSelectorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Selected = this.Selected; _userControl.SetTypeOptionsProxy(this); return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <DataReferenceSelectorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Selected = this.Selected as IDataReference; _userControl.DataType = this.DataType; return(_userControl); }
public Control BuildWebControl() { SaveButtonTemplateUserControlBase userControl = _userControlType.ActivateAsUserControl <SaveButtonTemplateUserControlBase>(this.UiControlID); userControl.FormControlLabel = this.Label; userControl.SaveEventHandler += this.SaveEventHandler; userControl.SaveAndPublishEventHandler += this.SaveAndPublishEventHandler; return(userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <BoolSelectorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.IsTrue = this.IsTrue; _userControl.TrueLabel = this.TrueLabel; _userControl.FalseLabel = this.FalseLabel; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <HierarchicalSelectorTemplateUserControlBase>(this.UiControlID); _userControl.SelectedKeys = this.SelectedKeys; _userControl.TreeNodes = this.TreeNodes; _userControl.AutoSelectChildren = this.AutoSelectChildren; _userControl.Required = this.Required; return(_userControl); }
/// <exclude /> public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <TemplatedDoubleKeySelectorUserControlBase>(this.UiControlID); _userControl.FirstKey = this.FirstKey; _userControl.SecondKey = this.SecondKey; _userControl.Options = this.Options; _userControl.Required = this.Required; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <InfoTableTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Headers = this.Headers; _userControl.Rows = this.Rows; _userControl.Caption = this.Caption; _userControl.Border = this.Border; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <TypeFieldDesignerTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Fields = this.Fields; _userControl.KeyFieldName = KeyFieldName; _userControl.LabelFieldName = this.LabelFieldName; _userControl.KeyFieldReadOnly = KeyFieldReadOnly; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <DateTimeSelectorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Date = this.Date; _userControl.ReadOnly = this.ReadOnly; _userControl.ShowHours = this.ShowHours; _userControl.IsValid = true; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <MultiContentXhtmlEditorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.EmbedableFieldsTypes = this.EmbedableFieldsTypes; _userControl.DefaultPlaceholderId = this.DefaultPlaceholderId; _userControl.PlaceholderDefinitions = this.PlaceholderDefinitions; _userControl.NamedXhtmlFragments = this.NamedXhtmlFragments; _userControl.ClassConfigurationName = this.ClassConfigurationName; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <PageContentEditorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.TemplateId = this.TemplateId; _userControl.SelectableTemplateIds = this.SelectableTemplateIds; _userControl.NamedXhtmlFragments = this.NamedXhtmlFragments; _userControl.ClassConfigurationName = this.ClassConfigurationName; _userControl.PageId = this.PageId; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <TextInputTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Text = this.Text; _userControl.ClientValidationRules = this.ClientValidationRules; _userControl.Type = this.Type; _userControl.Required = this.Required; _userControl.SpellCheck = this.SpellCheck; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <XhtmlEditorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Xhtml = this.Xhtml; _userControl.EmbedableFieldsTypes = this.EmbedableFieldsTypes; _userControl.ClassConfigurationName = this.ClassConfigurationName; _userControl.PreviewPageId = PreviewPageId; _userControl.PreviewTemplateId = PreviewTemplateId; _userControl.PreviewPlaceholder = PreviewPlaceholder; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <TreeSelectorTemplateUserControlBase>(this.UiControlID); _userControl.SelectedKey = this.SelectedKey; _userControl.ElementProvider = this.ElementProvider; _userControl.SelectableElementPropertyName = this.SelectableElementPropertyName; _userControl.SelectableElementPropertyValue = this.SelectableElementPropertyValue; _userControl.SelectableElementReturnValue = this.SelectableElementReturnValue; _userControl.SerializedSearchToken = this.SerializedSearchToken; _userControl.Required = this.Required; return(_userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <DataReferenceTreeSelectorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.Selected = this.Selected; _userControl.NullValueAllowed = this.NullValueAllowed; _userControl.DataType = this.DataType; _userControl.Handle = this.Handle; _userControl.SearchToken = this.SearchToken; _userControl.RootEntityToken = this.RootEntityToken; _userControl.ClientValidationRules = this.ClientValidationRules; return(_userControl); }
public Control BuildWebControl() { ToolbarButtonTemplateUserControlBase userControl = _userControlType.ActivateAsUserControl <ToolbarButtonTemplateUserControlBase>(this.UiControlID); userControl.FormControlLabel = this.Label; userControl.FormControlClickEventHandler += this.ClickEventHandler; userControl.FormControlHelp = this.Help; userControl.FormControlIconHandle = this.IconHandle; userControl.FormControlDisabledIconHandle = this.DisabledIconHandle; userControl.FormControlLaunchUrl = this.LaunchUrl; userControl.FormControlSaveBehaviour = this.SaveBehaviour; userControl.FormControlIsDisabled = this.IsDisabled; return(userControl); }
public Control BuildWebControl() { _templateControl = _templateUserControlType.ActivateAsUserControl <TemplatedUiContainerBase>(this.UiControlID); Control formPlaceHolder = _templateControl.GetFormPlaceHolder(); _messagePlaceHolder = _templateControl.GetMessagePlaceHolder(); _templateControl.SetContainerTitle(_containerLabel); _templateControl.SetContainerTitleField(_containerLabelField); _templateControl.SetContainerIcon(_containerIcon); _templateControl.SetWebUiControlRef(_form); formPlaceHolder.Controls.Add(_form.BuildWebControl()); return(_templateControl); }
public Control BuildWebControl() { PreviewTabPanelTemplateUserControlBase userControl = _userControlType.ActivateAsUserControl <PreviewTabPanelTemplateUserControlBase>(this.UiControlID); userControl.FormControlLabel = this.Label; userControl.FormControlClickEventHandler += this.ClickEventHandler; userControl.CustomTabId = _clientTabId; LinkButton shadowLinkButton = new LinkButton(); shadowLinkButton.Style.Add("display", "none"); shadowLinkButton.ID = "Preview"; shadowLinkButton.Text = "Preview"; shadowLinkButton.Click += this.ClickEventHandler; userControl.EventControl = shadowLinkButton; return(userControl); }
public Control BuildWebControl() { _userControl = _userControlType.ActivateAsUserControl <SelectorTemplateUserControlBase>(this.UiControlID); _userControl.FormControlLabel = this.Label; _userControl.SelectedIndexChangedEventHandler += this.SelectedIndexChangedEventHandler; _userControl.SelectedObjects = new List <object> { this.Selected }; _userControl.Options = this.Options; _userControl.OptionsLabelField = this.OptionsLabelField; _userControl.OptionsKeyField = this.OptionsKeyField; _userControl.BindingType = this.BindingType; _userControl.Required = this.Required; _userControl.ReadOnly = this.ReadOnly; _userControl.ProvideNoSelectionOption = true; return(_userControl); }