12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace CustomUrlSchemeRegistrationPoC
- {
- static class Program
- {
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- if (args.Length != 0)
- {
- MessageBox.Show(string.Join(Environment.NewLine, args.Select((p, i) => $"args[{i}]= {p}")), "Command line Args");
- return;
- }
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new UriPocForm());
- }
- }
- }
|