public bool getMoney(int howMuch) { if (CurrentCard.MoneyRubels < howMuch || MoneyInATM < howMuch) { return(false); } CurrentCard.MoneyRubels -= howMuch; MoneyInATM -= howMuch; DataBaseWorker.saveMoneyInATM(MoneyInATM, DataBaseWorker.AtmInfoPath); DataBaseWorker.saveCards(AllCards, DataBaseWorker.CardPath); return(true); }