Exemplo n.º 1
0
        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();
            };
        }
Exemplo n.º 2
0
 public ItemPictureBox(DWItem item, DWItemBox itemBox)
 {
     Item    = item;
     ItemBox = itemBox;
 }