Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (listBox1.Items.Count > 0 && listBox2.Items.Count > 0)
            {
                for (int i = 0; i < Convert.ToInt32(numericUpDown1.Value); i++)
                {
                    t = new Tarayici(listBox1.Items.Cast <string>().ToList(), listBox2.Items.Cast <string>().ToList(),
                                     prxy_tr, pop, listBox4.Items.Cast <string>().ToList(), listBox5.Items.Cast <string>().ToList(),
                                     Convert.ToInt32(numericUpDown2.Value), i.ToString());

                    tarayici_listesi.Add(t);

                    if (!checkBox2.Checked)
                    {
                        t.Opacity = 100;
                        t.Show();
                    }
                    else
                    {
                        t.Opacity = 0; t.ShowInTaskbar = false;
                    }

                    System.Threading.Thread.Sleep(300);
                }

                button1.Enabled = false;
                button2.Enabled = true;
                başlatToolStripMenuItem.Enabled = false;
                durdurToolStripMenuItem.Enabled = true;
            }
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (listBox1.Items.Count > 0 && listBox2.Items.Count > 0)
            {
                foreach (var c in listBox1.Items)
                {
                    t = new Tarayici(c.ToString(), listBox2.Items.Cast <string>().ToList(),
                                     prxy_tr, pop, listBox4.Items.Cast <string>().ToList(), listBox5.Items.Cast <string>().ToList());
                    tarayici_listesi.Add(t);

                    if (!checkBox2.Checked)
                    {
                        t.Opacity = 100;
                        t.Show();
                    }
                    else
                    {
                        t.Opacity = 0; t.ShowInTaskbar = false; t.Show();
                    }
                }
                button1.Enabled = false;
                button2.Enabled = true;
                başlatToolStripMenuItem.Enabled = false;
                durdurToolStripMenuItem.Enabled = true;
            }
        }