static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (args.Length != 2) throw new ArgumentException("此 Form 只接受兩個參數,第一個為CodeType,第二個為FileName。"); var codeType = args[0]; var fileName = args[1]; CodeForm form = new CodeForm(codeType, fileName); Application.Run(form); }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (args.Length != 2) { throw new ArgumentException("此 Form 只接受兩個參數,第一個為CodeType,第二個為FileName。"); } var codeType = args[0]; var fileName = args[1]; CodeForm form = new CodeForm(codeType, fileName); Application.Run(form); }