static void Main(string[] args) { Bank <Account> bank = new Bank <Account>("VTBBank"); Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("\t\t\t\t\tVTB Bank\n"); bool flat = true; while (flat) { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("-----------------------------------------------------------"); Console.ForegroundColor = ConsoleColor.DarkGreen; Console.WriteLine("\n1.Create New Account\t\t2.Close Account\t\t3.Withdraw"); Console.WriteLine("4.Put\t\t\t\t5.Print inform\t\t6.Transfer"); Console.WriteLine("\t\t\t\t7.Exit"); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine("\nChoose number: "); switch (Convert.ToInt32(Console.ReadLine())) { case 1: OpenAccount(bank); break; case 2: CloseAccount(bank); break; case 3: WithDraw(bank); break; case 4: Put(bank); break; case 5: PrintInform(bank); break; case 6: Transfer(bank); break; case 7: flat = false; continue; } bank.calculate(); } Console.ReadKey(); }