protected override void OnPaint(PaintEventArgs e)
{
if (ActiveDeck?.CardLayout == null)
{
e.Graphics.FillRectangle(Brushes.White, 0, 0, Size.Width, Size.Height);
e.Graphics.DrawString("Select a Layout in the Project Window", new Font(DefaultFont.FontFamily, 20), Brushes.Red, new RectangleF(10, 10, Size.Width - 10, Size.Height - 10));
return;
}
if (-1 != ActiveDeck.CardIndex && ActiveDeck.CardIndex < ActiveDeck.CardCount)
{
m_zCardRenderer.DrawCard(0, 0, e.Graphics, ActiveDeck.CurrentLine, false, true);
}
}