public void ToggleMode(ProxyMode mode)
 {
     _config.sysProxyMode = (int)mode;
     SaveConfig(_config);
     ToggleModeChanged?.Invoke(this, new EventArgs());
 }
示例#2
0
 public void ToggleMode(ProxyMode mode)
 {
     _config.sysProxyMode = mode;
     Save();
     Application.Current.Dispatcher?.Invoke(() => { ToggleModeChanged?.Invoke(this, new EventArgs()); });
 }