Exemplo n.º 1
0
 static bool OnGetCaptcha(BaiduPCS sender, byte[] imgBytes, out string captcha, object userdata)
 {
     captcha = null;
     frmCaptcha frm = new frmCaptcha(imgBytes);
     frm.TopMost = true;
     if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         captcha = frm.Captcha;
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
        static bool OnGetCaptcha(BaiduPCS sender, byte[] imgBytes, out string captcha, object userdata)
        {
            captcha = null;
            frmCaptcha frm = new frmCaptcha(imgBytes);

            frm.TopMost = true;
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                captcha = frm.Captcha;
                return(true);
            }
            return(false);
        }