private void TakeMoney() { ShowBalanceMenu(); Console.Write("Выберите счет:"); int accid = Int32.Parse(Console.ReadLine()); Console.Write("Вводите сумму:"); bool isGood = false; string message = ""; try { double cash = Double.Parse(Console.ReadLine()); ServiceAccount sa = new ServiceAccount(); isGood = sa.MoneyTake(accid, cash, out message); } catch (Exception exc) { message = exc.Message; } if (isGood) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(message); Console.ForegroundColor = ConsoleColor.White; } else { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(message); Console.ForegroundColor = ConsoleColor.White; } }