Exemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposing)
     {
         return;
     }
     if (m_commonGraphics != null)
     {
         m_commonGraphics.Dispose();
         m_commonGraphics = null;
     }
     if (m_gdiFonts != null)
     {
         foreach (string key in m_gdiFonts.Keys)
         {
             m_gdiFonts[key].Dispose();
         }
         m_gdiFonts = null;
     }
     if (m_disposeRenderer && m_renderer != null)
     {
         m_renderer.Dispose();
         m_renderer = null;
     }
 }
Exemplo n.º 2
0
 internal virtual void BeginReport(int dpiX, int dpiY)
 {
     if (dpiX == 0)
     {
         dpiX = 96;
     }
     if (dpiY == 0)
     {
         dpiY = 96;
     }
     m_commonGraphics = new GraphicsBase(dpiX, dpiY);
 }