//更新验证码 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); }
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); }