コード例 #1
0
 protected virtual void Display(string title, int menuType)
 {
     Console.Title = title;
     Console.Clear();
     string[] menu = MenuPopulatorService.ReturnMenu(menuType);
     for (int i = 0; i < menu.Length; i++)
     {
         Console.WriteLine($"{i+1}. {menu[i]}");
     }
 }
コード例 #2
0
 private void InitialDraw(string title, int menuType)
 {
     Console.Title = title;
     Console.Clear();
     string[] menu = MenuPopulatorService.ReturnMenu(menuType);
     for (int i = 0; i < menu.Length; i++)
     {
         Console.WriteLine($"{i+1}. {menu[i]}");
     }
 }