コード例 #1
0
        private float PriceFloat(out float maxPrice, out bool isOverPrice)
        {
            string pricestr = "";

            pricestr = CefFrameHelper.GetInnerHtmlByHap(MainCefFrame, "span", "class", "price").FirstOrDefault();
            pricestr = pricestr.Replace("元", "");
            float priceFloat = float.Parse(pricestr);

            maxPrice    = float.Parse(ConfigHelper.GetValue("maxPrice"));
            isOverPrice = priceFloat > maxPrice;
            return(priceFloat);
        }