예제 #1
0
        //更新验证码
        public void ReflshPicImage()
        {
            string      codeUrl  = "https://secure.elong.com/passport/getValidateCode";
            ELOGN_LOGIN agent    = new ELOGN_LOGIN();
            Stream      stmImage = agent.getCodeStream(codeUrl);

            picValidate.Image = Image.FromStream(stmImage);
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ELOGN_LOGIN elongLogin = new ELOGN_LOGIN();

            var rmsg = elongLogin.requestM(txtUserName.Text, txtPassWord.Text, txtValidateCode.Text);

            MessageBox.Show(rmsg);
        }