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"); } }
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"); }