private SubWindow CheckSubWindowType2() { var img = new Image <Bgr, byte>(_screenHelper.ScreenArea(_windowAttacher.Config.Market.CheckSubWindow.Area.ToRectange())); var result = _regonizeArea.MatchPattern(img, _imgInfo); if (result != Rectangle.Empty) { return(SubWindow.InfoWindow); } result = _regonizeArea.MatchPattern(img, _imgBuy); if (result != Rectangle.Empty) { return(SubWindow.QuantityBuyWindow); } return(SubWindow.UnknownWindow); }