Пример #1
0
 public static void Main(string[] args)
 {
     try
     {
         JsonConvert.DefaultSettings = () => new JsonSerializerSettings {
             Converters = { new StringEnumConverter() }
         };
         var pos = new PointOfSale();
         pos.Run();
     }
     catch (Exception ex)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("ERROR!");
         Console.ForegroundColor = ConsoleColor.Yellow;
         Console.WriteLine(ex);
         Console.ResetColor();
         Console.ReadLine();
     }
 }
Пример #2
0
 public Listener(PointOfSale pos)
 {
     Pos = pos;
 }