protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.FillRectangle(BackColor, 0, 0, Width, Height);
// Header.
e.Graphics.FillRectangle(TitleBackColor, 0, 0, Width, 32);
e.Graphics.DrawString(_months[_selectedDate.Month - 1] + " " + _selectedDate.Year.ToString(), Font, TitleForeColor, 0, 0, Width, 32, ContentAlignment.MiddleCenter);
if (ShowToday)
e.Graphics.DrawRectangle(new Pen(Color.FromArgb(0, 102, 204)), CellWidth * 1, 141, CellWidth - 2, 13);
e.Graphics.DrawRectangle(new Pen(BorderColor), 0, 0, Width, Height);
}
public override void Refresh()