private void AddControl(CraftingQueueItem craftingQueueItem) { var control = new CraftingQueueItemControl { DeleteCallback = this.DeleteCraftingQueueItemHandler, HiddenCallback = this.ItemControlHiddenHandler, CountToCraftChangedCallback = this.ItemControlCountToCraftChangedCallback }; control.Setup(this.craftingQueue, craftingQueueItem); this.craftingQueueItemsControls[craftingQueueItem] = control; this.itemsChildrenCollection.Add(control); this.Refresh(); }