public bool withDraw() { Clear(); customerDelegator wd = null; ATMInterface.changeTextColor(Color.Gray); WriteLine("\na) Fast Cash\nb) Normal Cash"); wd = GetInput('a', 'b') switch { 'a' => fastCash, 'b' => normalCash, _ => Exit }; return(wd.Invoke()); }
public override bool selectMenu(char selectedMenu) { customerDelegator d1 = null; d1 = selectedMenu switch { '1' => withDraw, '2' => cashTransfer, '3' => depositCash, '4' => displayBalance, '5' => Exit, _ => Exit }; return(d1.Invoke()); }