internal void ManageAccounts() { accountListControler.SetAccounts(personControler.GetAccounts()); if (accountListControler.AccountsEmpty()) { AddAccount(); } var title = "Manage Accounts " + personControler.GetUserName(); string[] optionList = { "Add Account", "List Accounts" }; string option = MenuDefaults.ListScreen(title, "Option", optionList, () => ManageAccounts()); switch (option) { case "1": AddAccount(); break; case "2": ListAccounts(); break; case MenuStructure.Back: break; default: ManageAccounts(); break; } }
public void ManageProfile() { var title = "Manage Profile " + personControler.GetUserName(); string[] optionList = { "Change Name", "Delete User" }; string option = MenuDefaults.ListScreen(title, "Option", optionList, () => ManageProfile()); switch (option) { case "1": ChangeName(); break; case "2": DeleteUser(); break; case MenuStructure.Back: break; default: ManageProfile(); break; } }
private void Wellcome() { var title = "Wellcome " + personControler.GetUserName(); string[] optionList = { "Manage Profile", "Manage Accounts" }; string option = MenuDefaults.ListScreen(title, "Option", optionList, () => Wellcome()); switch (option) { case "1": ManageProfile(); break; case "2": ManageAccounts(); break; case MenuStructure.Back: Show(); break; default: Wellcome(); break; } }