Ejemplo n.º 1
0
        private void Browser_OnVaildate_Success(string challenge, string key, string validate)
        {
            try
            {
                Device_Verify.Send_SMS(challenge, key, tmp_token, validate);
                this.challenge = challenge;
                this.key       = key;
                this.validate  = validate;

                Invoke(new Action(() =>
                {
                    CodeInputMask.Visible = true;
                    browser.Visible       = false;
                }));
            }
            catch (Exceptions.SMS_Send_Exception ex)
            {
                MessageBox.Show($"短信发送失败:{ex.Message}");

                Invoke(new Action(() =>
                {
                    CodeInputMask.Visible = false;
                    browser.Refresh();
                }));

                throw ex;
            }
        }
        private void Browser_OnVaildate_Success(string challenge, string key, string validate)
        {
            try
            {
                Device_Verify.Send_SMS(challenge, key, tmp_token, validate);
                this.challenge = challenge;
                this.key       = key;
                this.validate  = validate;

                Dispatcher.Invoke(() =>
                {
                    CodeInputMask.Visibility = Visibility.Visible;
                    browser.Visibility       = Visibility.Hidden;
                });
            }
            catch (Exceptions.SMS_Send_Exception ex)
            {
                System.Windows.Forms.MessageBox.Show($"短信发送失败:{ex.Message}");
                Dispatcher.Invoke(() =>
                {
                    CodeInputMask.Visibility = Visibility.Hidden;
                    browser.Refresh();
                });
                throw ex;
            }
        }
Ejemplo n.º 3
0
 private void Btn_Resend_Click(object sender, EventArgs e)
 {
     Device_Verify.Send_SMS(challenge, key, tmp_token, validate);
 }
Ejemplo n.º 4
0
 private void Browser_OnVaildate_Success(string challenge, string key, string validate)
 {
     Device_Verify.Send_SMS(challenge, key, tmp_token, validate);
 }