Ejemplo n.º 1
0
        private void Starts_Tick(object sender, EventArgs e)
        {
            try
            {
                if (list.Items.Count >= 1)
                {
                    lblStatus.Text     = "Working";
                    list.SelectedIndex = 0;
                    flag();
                    fillData();
                    Starts.Stop();
                    Verify.Start();
                }

                else
                {
                    Starts.Stop();
                    Returns.Start();
                    lblStatus.Text = "Stopped";
                    MessageBox.Show("Sem dados em lista", "Acabou");
                }
            }

            catch (Exception ex)
            {
                Starts.Stop();
                Returns.Start();
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 2
0
 private void btnStop_Click(object sender, EventArgs e)
 {
     Starts.Stop();
     Verify.Stop();
     Returns.Start();
     lblStatus.Text = "Stopped";
     MessageBox.Show("successfully stopped!", "stopped");
 }
Ejemplo n.º 3
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);
            }
        }