添加更多指令支持;

添加Form页面
This commit is contained in:
小白猿
2023-11-14 20:29:18 +08:00
parent 3c090e0e91
commit ba46b2e533
13 changed files with 693 additions and 21 deletions
+3 -3
View File
@@ -91,9 +91,9 @@ namespace BarrageGrab.Proxy
}
/// <summary>
/// 注册系统代理
/// 注册为系统代理
/// </summary>
protected void RegisterSystemProxy()
public void RegisterSystemProxy()
{
RegistryKey registry = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", true);
registry.SetValue("ProxyEnable", 1);
@@ -103,7 +103,7 @@ namespace BarrageGrab.Proxy
/// <summary>
/// 关闭系统代理
/// </summary>
protected void CloseSystemProxy()
public void CloseSystemProxy()
{
RegistryKey registry = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", true);
registry.SetValue("ProxyEnable", 0);