Advertisement
SnowPhoenix347

Untitled

Nov 3rd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace FifthProject
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string[] name = new string[0];
  14.             string[] surName = new string[0];
  15.             string[] patronymic = new string[0];
  16.             string[] post = new string[0];
  17.  
  18.             while (true)
  19.             {
  20.                 ShowMenu();
  21.                 switch (MenuInput())
  22.                 {
  23.                     case '1':
  24.                         Console.WriteLine("slot 1");
  25.                         break;
  26.                     case '2':
  27.                         Console.WriteLine("slot 2");
  28.                         break;
  29.                     case '3':
  30.                         Console.WriteLine("slot 3");
  31.                         break;
  32.                     case '4':
  33.                         Console.WriteLine("slot 4");
  34.                         break;
  35.                     default:
  36.                         break;
  37.                 }
  38.                 Console.Clear();
  39.             }
  40.         }
  41.         static void ShowMenu()
  42.         {
  43.             Console.WriteLine("\tMenu\n" +
  44.                     "1. Add new file\n" +
  45.                     "2. Show all files\n" +
  46.                     "3. Delete file\n" +
  47.                     "4. Exit");
  48.         }
  49.         static char MenuInput()
  50.         {
  51.             char menuInput = Console.ReadKey().KeyChar;
  52.             return menuInput;
  53.         }
  54.         static void AddNewFile()
  55.         {
  56.  
  57.         }
  58.     }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement