示例#1
0
        static int Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var arg0 = args.FirstOrDefault();

            if (arg0 == "-i")
            {
                ProxyAdapterInstaller.InstallProxyAdapter();
            }
            else
            {
                Application.Run(new ProxyAdapterInstallerContext());
            }

            return(0);
        }
示例#2
0
 private void InstallProxyAdapter(object sender, EventArgs e) =>
 ProxyAdapterInstaller.InstallProxyAdapter();