Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var str = qiche.GotoLoginPage();

            if (string.IsNullOrWhiteSpace(str))
            {
                var validateCodeImg = qiche.ValidateCode();
                var validatecode    = DaMa(validateCodeImg);
                var result          = qiche.Login(Tool.userInfo_qc.UserName, Tool.userInfo_qc.PassWord, validatecode);
            }
        }
Пример #2
0
 /// <summary>
 /// 加载验证码
 /// </summary>
 private void LoadValidateCode()
 {
     if (Tool.site == Aide.Site.Qiche)
     {
         var str = qiche.GotoLoginPage();
         if (string.IsNullOrWhiteSpace(str))
         {
             pbCode.Image = qiche.LoadValidateCode();
         }
         else
         {
             MessageBox.Show(str);
         }
     }
     else
     {
         yiche.GotoLoginPage();
         pbCode.Image = yiche.LoadValidateCode();
     }
 }