DrawHourLabel() публичный абстрактный Метод

public abstract DrawHourLabel ( Graphics g, Rectangle rect, int hour, bool ampm ) : void
g System.Drawing.Graphics
rect System.Drawing.Rectangle
hour int
ampm bool
Результат void
Пример #1
0
        private void DrawHourLabels(PaintEventArgs e, Rectangle rect)
        {
            e.Graphics.SetClip(rect);

            for (int m_Hour = 0; m_Hour < 24; m_Hour++)
            {
                Rectangle hourRectangle = rect;

                hourRectangle.Y     = rect.Y + (m_Hour * 2 * halfHourHeight) - scrollbar.Value;
                hourRectangle.X    += hourLabelIndent;
                hourRectangle.Width = hourLabelWidth;

                if (hourRectangle.Y > this.HeaderHeight / 2)
                {
                    renderer.DrawHourLabel(e.Graphics, hourRectangle, m_Hour);
                }
            }

            e.Graphics.ResetClip();
        }