Exemplo n.º 1
0
 public void RemoveItem(CozyControl control)
 {
     this.RemoveChild(control);
     Items.Remove(control);
     RefreshItems();
     if(ItemRemoveEventHandler != null)
     {
         ItemRemoveEventHandler(this, new ItemRemoveEventArgs(control));
     }
 }
Exemplo n.º 2
0
 public void AddItem(CozyControl control)
 {
     this.AddChild(control);
     Items.Add(control);
     RefreshItems();
     if (ItemAddEventHandler != null)
     {
         ItemAddEventHandler(this, new ItemAddEventArgs(control));
     }
 }