コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }