示例#1
0
        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (on)
            {
                xxt.Abort();
            }
            on = false;

            if (irc.IsConnected())
            {
                irc.Disconnect();
            }

            Properties.Settings.Default.tb1 = textBox1.Text;
            Properties.Settings.Default.tb2 = textBox2.Text;
            if (tbChannel.Text != "")
            {
                Properties.Settings.Default.channel = tbChannel.Text;
            }
            Properties.Settings.Default.Save();
        }