Example #1
0
 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();
     }
 }
Example #2
0
 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();
     }
 }
Example #3
0
 public override void TriggerMenuItem()
 {
     Console.Clear();
     OnClicked();
     ParentItem.TriggerMenuItem();
 }
Example #4
0
 public override void TriggerMenuItem()
 {
     Console.Clear();
     m_IActionForActionItem.ActionMethod();
     ParentItem.TriggerMenuItem();
 }