예제 #1
0
 public string Run(Stream imageStream, SiteManager site)
 {
     CaptchaPictureBox.Image = Image.FromStream(imageStream);
     UserInput = null;
     this.Show();
     Application.Run(this);
     return UserInput;
 }
예제 #2
0
 public async Task<string> RecognizeAsync(Stream imageStream, SiteManager site)
 {
     using (var wnd = new XjtuCardCaptchaDialog())
         return wnd.Run(imageStream, site);
 }
예제 #3
0
#pragma warning disable CS1998 // 异步方法缺少 "await" 运算符,将以同步方式运行
        public async Task<string> GetPasswordAsync(Stream keypadImageStream, IList<MapAreaInfo> mapAreas, SiteManager site)
        {
            using (var wnd = new XjtuCardCaptchaDialog())
                return wnd.Run(keypadImageStream, site);
        }