public DWItemBox(DWItem item) { InitializeComponent(); AutoSize = true; Item = item; ToolTip = new ToolTip(); PictureBox.Size = imageSize; Controls.Add(PictureBox); if (item.ShowCount) { CountLabel.Text = ""; CountLabel.Font = new Font(DWGlobals.DWFont.GetFamily(), 12); CountLabel.AutoSize = true; CountLabel.Left = 26; CountLabel.Top = 35; Controls.Add(CountLabel); } item.ValueChanged += (sender, r) => { UpdateUI(); }; }
public ItemPictureBox(DWItem item, DWItemBox itemBox) { Item = item; ItemBox = itemBox; }