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