/// <summary>
 /// Handles the Paint event of the PfsPanel control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
 private void PfsPanel_Paint(object sender, PaintEventArgs e)
 {
     if (pfsByte != null)
     {
         pfsRenderer.DrawPfsPage(e.Graphics, new Rectangle(0, 0, 32, 32), pfsByte);
     }
 }
Beispiel #2
0
        private void DrawPfsPages(PaintEventArgs e)
        {
            if (Pfs != null)
            {
                for (var i = 0; i < (VisibleExtents * 8) && i + (WindowPosition * 8) < ExtentCount * 8; i++)
                {
                    var pageId = i + (WindowPosition * 8);

                    pfsRenderer.DrawPfsPage(e.Graphics, PagePosition(i), Pfs.PagePfsByte(pageId));
                }
            }
        }