Exemplo n.º 1
0
 private void Transfer_Click(object sender, EventArgs e)
 {
     Transfer tran = new Transfer(this);
     tran.ShowDialog();
 }
Exemplo n.º 2
0
 private Transaction createTransaction(int type)
 {
     Transaction tempPtr = null;
     switch (type)
     {
         case 1:
             tempPtr = new Balancelnquiry(currentPIN, screen, bankDatabase);
             break;
         case 2:
             tempPtr = new Withdrawal(currentPIN, screen, bankDatabase, cashDispenser);
             break;
         case 3:
             tempPtr = new Deposit(currentPIN, screen, bankDatabase, depositSlot, cashDispenser);
             break;
         case 4:
             tempPtr = new Transfer(currentPIN, screen, bankDatabase);
             break;
     }
     return tempPtr;
 }