PccGuiProgram.cs 853 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // See https://aka.ms/new-console-template for more information
  2. using PCC.Gui;
  3. namespace PCC;
  4. internal class PccGuiProgram
  5. {
  6. [STAThread]
  7. public static void Main(string[] args)
  8. {
  9. Console.WriteLine("Hello, World!");
  10. #if DEBUG
  11. try
  12. {
  13. #endif
  14. Application.EnableVisualStyles();
  15. Application.SetCompatibleTextRenderingDefault(false);
  16. // 创建并显示主窗体
  17. var mainWindow = new PccMainForm();
  18. Application.Run(mainWindow);
  19. #if DEBUG
  20. }
  21. catch (Exception e)
  22. {
  23. Console.WriteLine(e);
  24. }
  25. finally
  26. {
  27. Console.WriteLine();
  28. Console.Write("Finished, press ENTER to exit...");
  29. Console.ReadLine();
  30. }
  31. #endif
  32. Console.WriteLine("Bye, World!");
  33. }
  34. }