Exemplo n.º 1
0
 private void Rows_AfterItemRemove(LayoutRow item)
 {
     if (item.Control != null)
     {
         this.Items.Remove(item.Control as Component);
     }
 }
Exemplo n.º 2
0
 void Rows_AfterItemAdd(LayoutRow item)
 {
     if (item.Control != null)
     {
         this.Items.Add((Component)item.Control);
         item.Items[0].AdditionalConfig = item;
     }
     item.Items.AfterItemAdd += delegate(Component cItem)
     {
         this.Items.Add(cItem);
         cItem.AdditionalConfig = item;
     };
     item.Items.AfterItemRemove += this.AfterItemRemove;
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 public LayoutRow.Builder LayoutRow(LayoutRow component)
 {
     return(new LayoutRow.Builder(component));
 }