private void LoadChannels() { try { Cursor.Current = Cursors.WaitCursor; ChannelType channelType = (ChannelType)_channelTypeComboBox.SelectedIndex; List <Channel> channels = new List <Channel>(_tvSchedulerAgent.GetAllChannels(channelType, false)); ChannelLinks.RemoveObsoleteLinks(channelType, channels); List <LinkedChannelItem> channelItems = new List <LinkedChannelItem>(); foreach (Channel channel in channels) { string message; Color rowColor; GetLinkedMessageAndColor(channel, out message, out rowColor); channelItems.Add(new LinkedChannelItem(channel, message, rowColor)); } _channelItemsBindingSource.DataSource = channelItems; } catch (Exception ex) { MessageBox.Show(this, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { Cursor.Current = Cursors.Default; } }