Exemplo n.º 1
0
        private void Verify_Tick(object sender, EventArgs e)
        {
            try
            {
                if (web.Document.Body.InnerText.Contains("Thanks"))
                {
                    SystemSounds.Asterisk.Play();

                    approved.Items.Add(list.SelectedItem + "|Live|By Kamikaze|1$|");
                    _nApproved++;
                    lblLive.Text = _nApproved.ToString();
                    list.Items.RemoveAt(0);
                    lblList.Text = list.Items.Count.ToString();
                    Verify.Stop();
                    Returns.Start();
                    Starts.Start();
                }

                else if (web.Document.Body.InnerText.Contains("Error Processing Contribution"))
                {
                    _nReproved++;
                    lblDie.Text = _nReproved.ToString();
                    list.Items.RemoveAt(0);
                    lblList.Text = list.Items.Count.ToString();
                    Verify.Stop();
                    Returns.Start();
                    Starts.Start();
                }

                else
                {
                    _nReproved++;
                    lblDie.Text = _nReproved.ToString();
                    list.Items.RemoveAt(0);
                    lblList.Text = list.Items.Count.ToString();
                    Verify.Stop();
                    Returns.Start();
                    Starts.Start();
                }
            }

            catch (Exception ex)
            {
                Starts.Stop();
                Verify.Stop();
                Returns.Start();
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 2
0
 private void btnStart_Click(object sender, EventArgs e)
 {
     Starts.Start();
 }