示例#1
0
        private Point DrawContent(Graphics g, Rectangle rect, int x_left, int x_middle, CurrentInfo chartinfo, double lastJs, Point point)
        {
            int startY = rect.Y + 90;

            point.X = x_left;
            point.Y = startY;
            int everyheight = 21;

            drawLine_Half(g, "最新", chartinfo.currentPrice.ToString(), GetPriceColor(chartinfo.currentPrice, lastJs), point);
            point.Y += everyheight;
            drawLine_Half(g, "现手", chartinfo.currentHand.ToString(), ColorConfig.Color_StockInfo, point);
            point.Y += everyheight;
            drawLine_Half(g, "总手", chartinfo.totalHand.ToString(), ColorConfig.Color_StockInfo, point);
            point.Y += everyheight;
            drawLine_Half(g, "持仓", chartinfo.totalHold.ToString(), ColorConfig.Color_StockInfo, point);
            point.Y += everyheight;
            drawLine_Half(g, "日增", chartinfo.dailyAdd.ToString(), ColorConfig.Color_StockInfo, point);
            point.Y += everyheight;
            drawLine_Half(g, "外盘", chartinfo.outMount.ToString(), ColorConfig.Color_StockInfo, point);
            point.Y += everyheight;
            drawLine_Half(g, "比例", StringUtils.GetPercentRound(chartinfo.outPercent), ColorConfig.Color_StockInfo, point);
            point.Y += everyheight;
            drawLine_Half(g, "内盘", chartinfo.inMount.ToString(), ColorConfig.Color_StockInfo, point);
            point.Y += everyheight;
            drawLine_Half(g, "比例", StringUtils.GetPercentRound(chartinfo.inPercent), ColorConfig.Color_StockInfo, point);

            point.X = x_middle;
            point.Y = startY;
            drawLine_Half(g, "涨跌", chartinfo.GetUpStr(), GetPriceColor(chartinfo.currentPrice, lastJs), point);
            point.Y += everyheight;
            drawLine_Half(g, "涨速", chartinfo.GetUpSpeedStr(), GetPriceColor(chartinfo.upSpeed, 0), point);
            point.Y += everyheight;
            drawLine_Half(g, "开盘", chartinfo.open.ToString(), GetPriceColor(chartinfo.open, lastJs), point);
            point.Y += everyheight;
            drawLine_Half(g, "最高", chartinfo.high.ToString(), GetPriceColor(chartinfo.high, lastJs), point);
            point.Y += everyheight;
            drawLine_Half(g, "最低", chartinfo.low.ToString(), GetPriceColor(chartinfo.low, lastJs), point);
            point.Y += everyheight;
            drawLine_Half(g, "结算价", chartinfo.jsPrice.ToString(), GetPriceColor(chartinfo.jsPrice, lastJs), point);
            point.Y += everyheight;
            drawLine_Half(g, "昨结", chartinfo.lastJsPrice.ToString(), GetPriceColor(chartinfo.lastJsPrice, lastJs), point);
            point.Y += everyheight;
            drawLine_Half(g, "涨停", chartinfo.maxUp.ToString(), GetPriceColor(chartinfo.maxUp, lastJs), point);
            point.Y += everyheight;
            drawLine_Half(g, "跌停", chartinfo.maxDown.ToString(), GetPriceColor(chartinfo.maxDown, lastJs), point);
            return(point);
        }