I'm having an issue with formatting how I specifically want to display the enumeration items to the console window.
As of right now the Menu method displays the items in the enumeration as follow:
[1] CreateCustomer
[2] CreateAccount
[3] SetAccountBalance
[4] DisplayAccount Balance
[5] Exit
What I'm trying to accomplish well be to add the appropriate spaces between each menu option. For example, "CreateCustomer" to "Create Customer", "SetAccountBalance" to "Set Account Balance".
Menu Selection Enumeration
enum MenuSelection
{
CreateCustomer = 1,
CreateAccount = 2,
SetAccountBalance = 3,
DisplayAccountBalance = 4,
Exit = 5,
MaxMenuSelection = 5,
}
Display Menu Method
public static void Menu()
{
for (int i = 1; i <= (int)MenuSelection.MaxMenuSelection; i++)
{
Console.WriteLine($"[{i}] {((MenuSelection)i).ToString()}");
}
}
Any suggestions?