public static void Show(SubMenu i_Menu) { int userChoice = -1; while (!userChoice.Equals(k_ExitOrBack)) { userChoice = UserInteraction.printManager(i_Menu); if (!userChoice.Equals(k_ExitOrBack)) { i_Menu.MenuNodes[userChoice - k_MenuOffset].OnClick(); } } }
public void Show() { UserInteraction.Show(m_ListOfMenuNodes); }
public override void OnClick() { UserInteraction.Show(this); }
public override void OnClick() { Console.Clear(); m_ActionToPerform.Execute(); UserInteraction.PressAnyKetToContinue(); }