예제 #1
0
        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();
        }