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); }
private void InstallProxyAdapter(object sender, EventArgs e) => ProxyAdapterInstaller.InstallProxyAdapter();