public void RefreshEnabledChannels()
{
if (!this.Created)
return;
if (this.IsDisposed)
return;
this.Invoke((MethodInvoker)delegate {
lbEnabledChannels.Items.Clear();
List<int> ichannels = Plugin.Debug.EnabledChannels.ToList();
List<string> schannels = new List<string>();
foreach (int ichannel in ichannels)
schannels.Add(Plugin.Debug.GetChannelName(ichannel));
schannels.Sort();
foreach (string channel in schannels)
lbEnabledChannels.Items.Add(channel);
});
}