private void InitListAndComboBoxes() { DestinationChannelComboBox.Items.Clear(); ChannelSortingListBox.Items.Clear(); foreach (MergedChannel mc in channels_to_merge_) { MergedChannelComboBoxWrapper wrapper = new MergedChannelComboBoxWrapper(mc); DestinationChannelComboBox.Items.Add(wrapper); ChannelSortingListBox.Items.Add(wrapper); } DestinationChannelComboBox.SelectedIndex = 0; }