Ejemplo n.º 1
0
        private void buttonAccept_Click(object sender, EventArgs e)
        {
            try
            {
                SpamAction spamAction = new SpamAction(textBoxEditMessage.Text, textBoxEditTime.Text, textBoxEditNumber.Text, textBoxEditDelay.Text);
                if (spamAction.SpamMessage == "")
                {
                    throw null;
                }

                lists.EditAllAt(Index, spamAction);
                if (Working)
                {
                    lists.threadList[Index].Start();
                    lists.threadList[Index].Suspend();
                }

                this.Close();
            }
            catch
            {
                MessageBox.Show(lang[LanguageManager.Names.MBArgError], lang[LanguageManager.Names.MBTitle], MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }