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; }
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); }