Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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);
        }