示例#1
0
        private void lbDestination_DrawItem(object sender, DrawItemEventArgs e)
        {
            var listBox = sender as ListBox;

            if (e.Index == -1 || listBox == null)
            {
                return;
            }
            var channelNum = e.Index;
            var name       = _destinationProfile.GetChannelName(channelNum);
            var color      = _destinationProfile.GetChannelColor(channelNum);

            e.DrawItemWide(name, color, _useCheckmark);
        }