Example #1
0
        private bool IsValidEmail(string email)
        {
            bool f = new ApiSend().IsValidEmail(email);

            if (f == false)
            {
                MessageBox.Show("Validation email");
                login_box.Focus();
                return(false);
            }
            return(true);
        }
Example #2
0
        private void picbox_facebook_Click(object sender, EventArgs e)
        {
            ApiSend auth = new ApiSend();
            string  info = auth.Facebook_Auth();

            if (info == null)
            {
                return;
            }
            string name = auth.Tr(info);

            if (name != "")
            {
                //RequestManager.LoginFacebook(name);
            }
        }
Example #3
0
        private void btn_facebook_Click(object sender, EventArgs e)
        {
            ApiSend apiAuth = new ApiSend();
            string  info    = apiAuth.Facebook_Auth();

            if (info == null)
            {
                return;
            }
            string name = apiAuth.Tr(info);

            if (name != null)
            {
                ServerOpen();
                auth.LoginFacebook(name);
            }
        }
Example #4
0
        private void btn_gmail_Click(object sender, EventArgs e)
        {
            ApiSend apiAuth = new ApiSend();
            string  info    = apiAuth.Google_Auth();

            if (info == null)
            {
                return;
            }
            string name = apiAuth.Tr(info);

            if (name != "")
            {
                ServerOpen();
                auth.LoginGmail(name);
            }
        }