Пример #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;
 }
Пример #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);
        }