Program.cs 842 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7. namespace DWZB_Agv_Agreement
  8. {
  9. static class Program
  10. {
  11. /// <summary>
  12. /// The main entry point for the application.
  13. /// </summary>
  14. [STAThread]
  15. static void Main()
  16. {
  17. _ = new Mutex(true, "DRM2", out bool canCreateNew);
  18. if (canCreateNew)
  19. {
  20. Application.SetHighDpiMode(HighDpiMode.SystemAware);
  21. Application.EnableVisualStyles();
  22. Application.SetCompatibleTextRenderingDefault(false);
  23. Application.Run(new Form1());
  24. }
  25. else
  26. {
  27. MessageBox.Show("³ÌÐòÒѾ­ÔËÐУ¡£¡");
  28. }
  29. }
  30. }
  31. }