Program.cs 965 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.Windows.Forms;
  6. namespace BfAeDebug
  7. {
  8. static class Program
  9. {
  10. /// <summary>
  11. /// The main entry point for the application.
  12. /// </summary>
  13. ///
  14. public static String sProcessId;
  15. public static String sEventId;
  16. [STAThread]
  17. static void Main(String[] args)
  18. {
  19. if (args.Length < 2)
  20. {
  21. String argStr = "Args: ";
  22. foreach (var arg in args)
  23. argStr += arg;
  24. MessageBox.Show(argStr);
  25. return;
  26. }
  27. sProcessId = args[args.Length - 2];
  28. sEventId = args[args.Length - 1];
  29. Application.EnableVisualStyles();
  30. Application.SetCompatibleTextRenderingDefault(false);
  31. Application.Run(new Form1(args));
  32. }
  33. }
  34. }