//Back to account form private void btn_back_Click(object sender, EventArgs e) { ATM_account accForm = new ATM_account(); this.Hide(); accForm.Show(); }
//Return to previous form private void Transfer_confirm_FormClosed(object sender, FormClosedEventArgs e) { ATM_account accForm = new ATM_account(); this.Hide(); accForm.Show(); }
//Transfer confirmation button private void btn_confirm_transfer_Click(object sender, EventArgs e) { //Takes money from owner account UpdateAccWallet(); //Transfer money to receiver account TransferMoneyToReceiver(); ATM_account accForm = new ATM_account(); this.Hide(); accForm.Show(); MessageBox.Show("Succeeded!"); }