public SysAdminAuthentication(int userId)
        {
            _user = StaticAccessor.DB.GetUser(userId);

            _proxy = new ProxyAuthenticator();
            _proxy.SendAuthenticationCode(_user.Email);

            InitializeComponent();
        }
        public static ProxyAuthentication RetrieveProxyInfo()
        {
            ProxyAuthenticator proxyAuth = new ProxyAuthenticator();

            proxyAuth = proxyAuth.ReturnProxyAuthenticationInfo();
            if (proxyAuth != null)
            {
                return(proxyAuth.ProxyAuthObj);
            }

            return(null);
        }
        public static void SetProxyInfo(ProxyAuthentication proxyInfo)
        {
            ProxyAuthenticator proxyAuth = new ProxyAuthenticator();

            proxyAuth.AddProxyInfoToDb(proxyInfo);
        }