AdminTools.CLog.RefreshEnabledChannels C# (CSharp) Метод

RefreshEnabledChannels() публичный Метод

Refreshs the displayed list of currently enabled channels
public RefreshEnabledChannels ( ) : void
Результат void
        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);
            });
        }