Program.cs 989 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.Windows.Forms;
  6. namespace OTSPartA_STDEditor
  7. {
  8. static class Program
  9. {
  10. /// <summary>
  11. /// 应用程序的主入口点。
  12. /// </summary>
  13. [STAThread]
  14. static void Main(string[] args)
  15. {
  16. Application.EnableVisualStyles();
  17. Application.SetCompatibleTextRenderingDefault(false);
  18. //Application.Run(new Form_ConstantsEditor2());
  19. Form_Main form_ConstantsEditor2;
  20. if (args.Length > 1)
  21. {
  22. form_ConstantsEditor2 = new Form_Main(args);
  23. }
  24. else
  25. {
  26. form_ConstantsEditor2 = new Form_Main();
  27. }
  28. if (args.Length > 0)
  29. {
  30. form_ConstantsEditor2.STDDBAddress = args[0];
  31. }
  32. Application.Run(form_ConstantsEditor2);
  33. }
  34. }
  35. }