Ejemplo n.º 1
0
        private void buttAddSub_Click(object sender, EventArgs e)
        {
            if (textNewSubAddress.Text == "")
            {
                MessageBox.Show("You need to enter the subscription's address first.");
            }
            else
            {
                try
                {
                    WordOfTheDay newSub = new WordOfTheDay(textNewSubTitle.Text, textNewSubAddress.Text, true, "");

                    chklistSubscriptions.Items.Add(newSub.title, newSub.active);

                    wotds.Add(newSub);
                    main.SaveSubs();
                    main.needWotDCheck = true;

                    textNewSubAddress.Text = "";
                    textNewSubTitle.Text   = "";
                }
                catch
                {
                    MessageBox.Show("Cannot add subscription. The entered address doesn't seem to point to an RSS service");
                }
            }
        }
Ejemplo n.º 2
0
        private void buttAddSub_Click(object sender, EventArgs e)
        {
            if (textNewSubAddress.Text == "")
                MessageBox.Show("You need to enter the subscription's address first.");
            else
            {
                try
                {
                    WordOfTheDay newSub = new WordOfTheDay(textNewSubTitle.Text, textNewSubAddress.Text, true, "");

                    chklistSubscriptions.Items.Add(newSub.title, newSub.active);

                    wotds.Add(newSub);
                    main.SaveSubs();
                    main.needWotDCheck = true;

                    textNewSubAddress.Text = "";
                    textNewSubTitle.Text = "";
                }
                catch
                {
                     MessageBox.Show("Cannot add subscription. The entered address doesn't seem to point to an RSS service");
                }
            }
        }