using System; using System.Windows.Forms; namespace OTSIncAReportApp { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //分别调用无参报告,和带参报告 if (args.Length == 0) { frmReportApp frmReportApp = new frmReportApp(); Application.Run(frmReportApp); } else { frmReportApp frmReportApp = new frmReportApp(args); Application.Run(frmReportApp); } } } }