Example #1
0
        public void AddItem(int index, UCBottle item)
        {
            item.Width  = itemWidth;
            item.Height = this.Height - 10;

            items[index] = item;
            ReloadControls();
        }
Example #2
0
 public void RemoveItem(UCBottle item)
 {
     if (items.ContainsValue(item))
     {
         items.Remove(items.FirstOrDefault(p => p.Value == item).Key);
         this.Controls.Remove(item);
         ReloadControls();
     }
 }