Пример #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");
            }
        }
Пример #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");
 }