Program.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. //MessageBox.Show("a");
  17. Application.EnableVisualStyles();
  18. Application.SetCompatibleTextRenderingDefault(false);
  19. //Application.Run(new Form_ConstantsEditor2());
  20. Form_ConstantsEditor2 form_ConstantsEditor2;
  21. if (args.Length > 1)
  22. {
  23. form_ConstantsEditor2 = new Form_ConstantsEditor2(args);
  24. }
  25. else
  26. {
  27. form_ConstantsEditor2 = new Form_ConstantsEditor2();
  28. }
  29. if (args.Length > 0)
  30. {
  31. form_ConstantsEditor2.STDDBAddress = args[0];
  32. }
  33. Application.Run(form_ConstantsEditor2);
  34. }
  35. }
  36. }