CNAS取数仪器端升级
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

38 linhas
875B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.ServiceProcess;
  5. using System.Text;
  6. using System.Windows.Forms;
  7. namespace CNAS_SyncService
  8. {
  9. static class Program
  10. {
  11. /// <summary>
  12. /// 应用程序的主入口点。
  13. /// </summary>
  14. //static void Main()
  15. //{
  16. // ServiceBase[] ServicesToRun;
  17. // ServicesToRun = new ServiceBase[]
  18. // {
  19. // new SyncSerivice()
  20. // };
  21. // ServiceBase.Run(ServicesToRun);
  22. //}
  23. /// <summary>
  24. /// 应用程序的主入口点。
  25. /// </summary>
  26. //[STAThread]
  27. static void Main()
  28. {
  29. Application.EnableVisualStyles();
  30. Application.SetCompatibleTextRenderingDefault(false);
  31. Application.Run(new test());
  32. }
  33. }
  34. }