private void btnWithoutSemaTest_Click(object sender, EventArgs e) { //Make a new login form and then show it ATMLogin login = new ATMLogin(); login.Show(); //Set the semaphore global variable Program.setSemaTest(false); //Close the current form this.Hide(); }
private void btnwithRace_Click(object sender, EventArgs e) { //Set the race conditions Program.setRaceConditions(true); //Make a new login form and then show it ATMLogin login = new ATMLogin(); login.Show(); //Close the current form this.Hide(); }