Beispiel #1
0
        //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();
 }
Beispiel #3
0
 public MainWindow()
 {
     InitializeComponent();
     atm = new ATM();
 }