Ejemplo n.º 1
0
        private void btnFaceBook_Click(object sender, EventArgs e)
        {
            ExternalAuth auth = new ExternalAuth();

            string[] info  = auth.Facebook_Auth();
            string   name  = auth.Tr(info[0]);
            string   login = auth.Tr(info[1]);

            ServerCommands.AuthorizationWithFaceBook(name, login);
        }
Ejemplo n.º 2
0
        private void btnGoogle_Click(object sender, EventArgs e)
        {
            ExternalAuth auth = new ExternalAuth();

            string[] info  = auth.Google_Auth();
            string   name  = info[0];
            string   login = info[1];

            ServerCommands.AuthorizationWithGoogle(name, login);
        }