Program.cs 797 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Windows.Forms;
  3. namespace OTSIncAReportApp
  4. {
  5. static class Program
  6. {
  7. /// <summary>
  8. /// 应用程序的主入口点。
  9. /// </summary>
  10. [STAThread]
  11. static void Main(string[] args)
  12. {
  13. Application.EnableVisualStyles();
  14. Application.SetCompatibleTextRenderingDefault(false);
  15. //分别调用无参报告,和带参报告
  16. if (args.Length == 0)
  17. {
  18. frmReportApp frmReportApp = new frmReportApp();
  19. Application.Run(frmReportApp);
  20. }
  21. else
  22. {
  23. frmReportApp frmReportApp = new frmReportApp(args);
  24. Application.Run(frmReportApp);
  25. }
  26. }
  27. }
  28. }