Example #1
0
        private void cbPallet_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (-1 == cbPallet.SelectedIndex)
            {
                return;
            }
            PalletItem item = cbPallet.Items[cbPallet.SelectedIndex] as PalletItem;

            _palletProperties = item.Item;
            // update pallet image
            DrawPallet();
        }
        private void cbPallet_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (-1 == cbPallet.SelectedIndex)
            {
                return;
            }
            PalletItem item = cbPallet.Items[cbPallet.SelectedIndex] as PalletItem;

            _palletProperties = item.Item;
            // update description
            lbPalletDescription.Text = _palletProperties.Description;
            // update pallet image
            graphCtrlPallet.Invalidate();
        }