Program.cs 872 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.Windows.Forms;
  6. namespace Tofly.AutoUpdateSystem.Win
  7. {
  8. static class Program
  9. {
  10. /// <summary>
  11. /// 应用程序的主入口点。
  12. /// </summary>
  13. /// <param name="args"></param>
  14. [STAThread]
  15. static void Main(string[] args)
  16. {
  17. Application.EnableVisualStyles();
  18. Application.SetCompatibleTextRenderingDefault(false);
  19. //System.Windows.Forms.MessageBox.Show(args.Length.ToString());
  20. if (args == null || args.Length == 0)
  21. {
  22. Application.Run(new FormAutoUpdate());
  23. }
  24. else
  25. {
  26. Application.Run(new FormAutoUpdateCheck());
  27. }
  28. }
  29. }
  30. }