/// <summary> /// Apply a filter to show only items matching the filter /// </summary> /// <param name="Filter">Filter value</param> public void FilterItems(string Filter) { Items.Clear(); foreach (string Chan in Channels) { if (Chan.ToUpper().Contains(Filter.ToUpper()) || Filter.Equals("")) { Items.Add(Chan, 0); } } }