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

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

Refreshs the displayed list of currently disabled channels
public RefreshDisabledChannels ( ) : void
Результат void
        public void RefreshDisabledChannels()
        {
            if (!this.Created)
                return;
            if (this.IsDisposed)
                return;

            this.Invoke((MethodInvoker)delegate {
                lbDisabledChannels.Items.Clear();

                List<int> ichannels = Plugin.Debug.DisabledChannels.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)
                    lbDisabledChannels.Items.Add(channel);
            });
        }