/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="id">Die ID</param> /// <param name="name">Der Name der TextBox</param> public ControlFormularItemTextBox(IControlFormular formular, string id, string name) : base(formular, !string.IsNullOrWhiteSpace(id) ? id : "note") { Name = name; Init(); }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="id">Die ID</param> /// <param name="name">Der Name der TextBox</param> public ControlFormularItemRadio(IControlFormular formular, string id, string name) : this(formular, id) { Name = name; AddParam(name, Formular.Scope); Value = GetParam(Name); }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="id">Die ID</param> /// <param name="items">Die ComboBox-Einträge</param> public ControlFormularItemComboBox(IControlFormular formular, string id, params string[] items) : this(formular, id) { Items.AddRange(from v in items select new ControlFormularItemComboBoxItem() { Text = v }); }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="id">Die ID</param> public ControlFormularItemComboBox(IControlFormular formular, string id = null) : base(formular, id) { Init(); Name = id; //AddParam(Name, Formular.Scope); //SelectedValue = Page.GetParam(Name); }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param># /// <param name="id">Die ID</param> public ControlFormularItemDatepicker(IControlFormular formular, string id = null) : base(formular, !string.IsNullOrWhiteSpace(id) ? id : "datepicker") { Init(); }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="id">Die ID</param> public ControlFormularItemRadio(IControlFormular formular, string id) : base(formular, id) { Init(); }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="id">Die ID</param> public ControlFormularItemCheckbox(IControlFormular formular, string id = null) : base(formular, id) { Init(); }
/// <summary> /// Konstruktor /// </summary> /// <param name="context">Der Kontext, indem das Steuerelement gerendert wird</param> /// <param name="formular">Das Formular, indem das Steuerelement gerendert wird</param> public RenderContextFormular(RenderContext context, IControlFormular formular) : base(context?.Page) { Formular = formular; }
/// <summary> /// Konstruktor /// </summary> /// <param name="page">Die Seite, indem das Steuerelement gerendert wird</param> /// <param name="formular">Das Formular, indem das Steuerelement gerendert wird</param> public RenderContextFormular(IPage page, IControlFormular formular) : base(page) { Formular = formular; }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="id">Die ID</param> /// <param name="text">Der Text</param> public ControlFormularItemLabel(IControlFormular formular, string id, string text) : this(formular, id) { Text = text; }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="id">Die ID</param> public ControlFormularItem(IControlFormular formular, string id) : base(formular.Page, id) { Formular = formular; }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="id">Die ID</param> /// <param name="items">Die ComboBox-Einträge</param> public ControlFormularItemComboBox(IControlFormular formular, string id, string name, IEnumerable <ControlFormularItemComboBoxItem> items) : this(formular, id, name) { Items.AddRange(items); }
/// <summary> /// Konstruktor /// </summary> /// <param name="formular">Das zugehörige Formular</param> /// <param name="items">Die ComboBox-Einträge</param> public ControlFormularItemComboBox(IControlFormular formular, string id, params ControlFormularItemComboBoxItem[] items) : this(formular, id) { Items.AddRange(items); }