protected internal CandleBuySellElement(CandleBuySellView view, PlotPane host, CandleSample sample, int x, float minScale, float maxScale) : base(host) { m_View = view; m_Sample = sample; m_ScaleMin = minScale; m_ScaleMax = maxScale; computeCoords(); var h = Math.Max(m_Lay_BuyHeight, m_Lay_SellHeight); this.Region = new Rectangle(x, (int)(host.Height / host.Zoom) - h, CandleView.BAR_WIDTH, h); }