//Creates a new ATM and increments the ATM count private void newATM_Click(object sender, EventArgs e) { ATM atm = new ATM(); atm.Show(); atmCount++; }
//Closes the current ATM and opens a new one private void button1Cancel_Click(object sender, EventArgs e) { textBox1.Text = ""; textBox1.Visible = false; AskForAccountNr.Text = ""; //''Returns card'' and reopens application ATM newAtm = new ATM(); this.Dispose(); newAtm.Show(); if (activeAccount != null) { displayOptions(); } }