Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            int gameWeek;

            if (int.TryParse(txtGW.Text, out gameWeek))
            {
                RunAllPlayerThread RAPT       = new RunAllPlayerThread(gameWeek, this);
                Thread             RAPTThread = new Thread(RAPT.Run);
                RAPTThread.Start();
            }
            else
            {
                MessageBox.Show("Gameweek is null or not a number");
            }
        }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     int gameWeek;
     if (int.TryParse(txtGW.Text, out gameWeek))
     {
         RunAllPlayerThread RAPT = new RunAllPlayerThread(gameWeek, this);
         Thread RAPTThread = new Thread(RAPT.Run);
         RAPTThread.Start();
     }
     else MessageBox.Show("Gameweek is null or not a number");
 }