Pcc2GuiProgram.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. global using static PCC2.Data.DbAccess;
  2. using PCC2.Gui;
  3. namespace PCC2
  4. {
  5. internal static class Pcc2GuiProgram
  6. {
  7. /// <summary>
  8. /// The main entry point for the application.
  9. /// </summary>
  10. [STAThread]
  11. static void Main()
  12. {
  13. Console.WriteLine("Hello, World!");
  14. #if DEBUG
  15. try
  16. {
  17. #endif
  18. // To customize application configuration such as set high DPI settings or default font,
  19. // see https://aka.ms/applicationconfiguration.
  20. ApplicationConfiguration.Initialize();
  21. Application.Run(new Pcc2MainForm());
  22. #if DEBUG
  23. }
  24. catch (Exception e)
  25. {
  26. Console.WriteLine(e);
  27. }
  28. finally
  29. {
  30. Console.WriteLine();
  31. Console.Write("Finished, press ENTER to exit...");
  32. Console.ReadLine();
  33. }
  34. #endif
  35. Console.WriteLine("Bye, World!");
  36. }
  37. }
  38. }