Program.cs 906 B

123456789101112131415161718192021222324252627282930
  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_ConstantsEditor2 form_ConstantsEditor2 = new Form_ConstantsEditor2();
  20. if (args.Length> 0)
  21. {
  22. form_ConstantsEditor2.STDDBAddress = args[0];
  23. }
  24. //form_ConstantsEditor2.STDDBAddress = "C:\\Users\\someo\\Desktop\\OTSCleanlinesSTD.db";
  25. Application.Run(form_ConstantsEditor2);
  26. }
  27. }
  28. }