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(); } }
public Listener(PointOfSale pos) { Pos = pos; }