using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace OTSPartA_STDEditor { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form_ConstantsEditor2()); Form_ConstantsEditor2 form_ConstantsEditor2 = new Form_ConstantsEditor2(); if (args.Length> 0) { form_ConstantsEditor2.STDDBAddress = args[0]; } //form_ConstantsEditor2.STDDBAddress = "C:\\Users\\someo\\Desktop\\OTSCleanlinesSTD.db"; Application.Run(form_ConstantsEditor2); } } }