Esempio n. 1
0
 /// <summary>
 /// Add an item to the form.
 /// </summary>
 /// <param name="item">The item to add</param>
 public void AddItem(QuickFormItem item)
 {
     _items.Add(item);
     var ctl = item.GetControls(this);
     Controls.AddRange(ctl.ToArray());
     CurrentOffset += ItemHeight + ItemPadding;
 }
Esempio n. 2
0
 /// <summary>
 /// Add an item to the form.
 /// </summary>
 /// <param name="item">The item to add</param>
 /// <returns>This object, for method chaining</returns>
 public QuickForm Item(QuickFormItem item)
 {
     AddItem(item);
     return this;
 }