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();
}