Program.cs 758 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Windows.Forms;
  4. namespace ScreenExtenderClient
  5. {
  6. internal static class Program
  7. {
  8. internal static IReadOnlyList<string> Args;
  9. /// <summary>
  10. /// 应用程序的主入口点。
  11. /// </summary>
  12. [STAThread]
  13. private static void Main(string[] args)
  14. {
  15. Application.EnableVisualStyles();
  16. Application.SetCompatibleTextRenderingDefault(false);
  17. if (args.Length == 0 || args.Length > 2)
  18. {
  19. MessageBox.Show("1 or 2 args for target and view name");
  20. return;
  21. }
  22. Args = args;
  23. Application.Run(new SxdCliMainForm());
  24. }
  25. }
  26. }