//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(); } }
public WindowUsers() { InitializeComponent(); atm = new ATM(); }
public MainWindow() { InitializeComponent(); atm = new ATM(); }