static void TakeInput() { bool loopCondition = true; while (loopCondition) { string input = cli.Input("Command").ToLower(); switch (input) { case "add": util.RecordTransaction(); break; case "help": util.Instructions(); break; case "exit": fileManager.Save(true); loopCondition = false; break; case "erase": fileManager.Erase(); break; case "list": util.List(); break; case "remove": util.RemoveTransaction(); break; case "edit": util.EditTransaction(); break; case "profile": profile = new Profile(); break; case "withdraw": util.Exchange(true); break; case "deposit": util.Exchange(false); break; case "clear": Console.Clear(); break; default: Console.WriteLine("\nThere is no such command as '{0}'!\nEnter 'Help' to see available commands!\n", input); break; } } Console.Clear(); }