Advertisement
Guest User

Program.cs

a guest
Mar 11th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Program
  5. {
  6.     static void Main(string[] args)
  7.     {
  8.         DraftManager draftmanager = new DraftManager();
  9.         while (true)
  10.         {
  11.             try
  12.             {
  13.                 string intro = Console.ReadLine();
  14.                 if (intro == "Shutdown")
  15.                 {
  16.                     break;
  17.                 }
  18.                 draftmanager.HandleInput(intro);
  19.             }
  20.             catch (Exception ex)
  21.             {
  22.                 Console.WriteLine(ex.Message);
  23.             }
  24.         }
  25.         Console.WriteLine(draftmanager.ShutDown());
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement