private void Fill_ChannelList(string Filter) { LV_Channels.Items.Clear(); if (!(ChannelList == null)) { int i = 0; foreach (string sItem in ChannelList) { if ((sItem.ToLower().Contains(Filter.ToLower())) || (Filter.Equals(""))) { ListViewItem It = LV_Channels.Items.Add(sItem, 0); if (!(ChannelDescriptions[i].Equals(""))) { It.ToolTipText = ChannelDescriptions[i]; } } i++; } if (LV_Channels.Items.Count > 0) { LV_Channels.Sort(); LV_Channels.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent); } } }
private void LV_Channels_ItemDrag(object sender, ItemDragEventArgs e) { LV_Channels.DoDragDrop(LV_Channels.SelectedItems, DragDropEffects.Move); }