private void activateMenuItem(byte i_SelectedTabIndex) { if (i_SelectedTabIndex == k_BackOrExitIdx) { if (this is MainMenu == false) { Console.Clear(); ParentItem.TriggerMenuItem(); } } else { Console.Clear(); r_MenuItems[i_SelectedTabIndex - 1].TriggerMenuItem(); } }
private void activateMenuItem(byte i_SelectedItemIdx) { if (i_SelectedItemIdx == k_ExitOrBack) { if (this is MainMenu) { Environment.Exit(k_ExitCode); } else { Console.Clear(); ParentItem.TriggerMenuItem(); } } else { Console.Clear(); r_MenuItems[i_SelectedItemIdx - 1].TriggerMenuItem(); } }
public override void TriggerMenuItem() { Console.Clear(); OnClicked(); ParentItem.TriggerMenuItem(); }
public override void TriggerMenuItem() { Console.Clear(); m_IActionForActionItem.ActionMethod(); ParentItem.TriggerMenuItem(); }