public void AddItem(int index, UCBottle item) { item.Width = itemWidth; item.Height = this.Height - 10; items[index] = item; ReloadControls(); }
public void RemoveItem(UCBottle item) { if (items.ContainsValue(item)) { items.Remove(items.FirstOrDefault(p => p.Value == item).Key); this.Controls.Remove(item); ReloadControls(); } }