Esempio n. 1
0
        private void button_Click(object sender, EventArgs e)
        {
            string code = Device_Verify.Verify(textBox.Text, tmp_token);

            Device_Verify.GetAccount(code, ref account);
            MessageBox.Show(var_dump(account));
        }
Esempio n. 2
0
        private void Btn_Confirm_Click(object sender, EventArgs e)
        {
            try
            {
                Device_Verify.GetAccount(Device_Verify.Verify(TB_Code.Text, tmp_token), ref account);

                DialogResult = DialogResult.OK;
                Close();
            }
            catch (Exceptions.Verify_Exception ex)
            {
                MessageBox.Show($"验证码错误:{ex.Message}");
            }
            catch (Exceptions.GetAccount_Exception ex)
            {
                MessageBox.Show($"获取账号信息错误:{ex.Message}");
            }
        }