Пример #1
0
 private void Columns_AfterItemRemove(LayoutColumn item)
 {
     if (item.Control != null)
     {
         this.Items.Remove(item.Control as Component);
     }
 }
Пример #2
0
        void Columns_AfterItemAdd(LayoutColumn 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;
        }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 public LayoutColumn.Builder LayoutColumn(LayoutColumn component)
 {
     return(new LayoutColumn.Builder(component));
 }