Program.cs 849 B

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