コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 /// <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
     });
 }
コード例 #4
0
        /// <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);
        }
コード例 #5
0
 /// <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();
 }
コード例 #6
0
 /// <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();
 }
コード例 #7
0
 /// <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();
 }
コード例 #8
0
 /// <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;
 }
コード例 #9
0
 /// <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;
 }
コード例 #10
0
 /// <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;
 }
コード例 #11
0
 /// <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;
 }
コード例 #12
0
 /// <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);
 }
コード例 #13
0
 /// <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);
 }