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); }
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); }