public sealed override UserControl GetWindowControl(Guid networkId, string networkName) { var psuc = new ProxySwitcherUserControl(this, networkId); psuc.ShowAuthentication = IsAuthenticationSupported; psuc.SetDefaultProxy(GetDefaultProxy()); var additionalContent = GetCustomContent(networkId); if (additionalContent != null) psuc.SetCustomContent(additionalContent); return psuc; }
public sealed override UserControl GetWindowControl(Guid networkId, string networkName) { var psuc = new ProxySwitcherUserControl(this, networkId); psuc.ShowAuthentication = IsAuthenticationSupported; psuc.SetDefaultProxy(GetDefaultProxy()); var additionalContent = GetCustomContent(networkId); if (additionalContent != null) { psuc.SetCustomContent(additionalContent); } return(psuc); }