Beispiel #1
0
        private void DefaultBtn_Click(object sender, EventArgs e)
        {
            if (ChannelList.SelectedIndex == -1)
            {
                return;
            }

            ChannelData channel = (ChannelData)ChannelList.SelectedItem;

            if (Program.Config.DefaultChannel == channel.name)
            {
                Program.Config.DefaultChannel = string.Empty;
            }
            else
            {
                Program.Config.DefaultChannel = channel.name;
            }
            ChannelList.Refresh();
            Program.SaveConfig(Program.ConfigurationFilename, Program.Config);
        }