/// <summary> /// Overrides the <c>Paint</c> handler on this <c>YataPanelFrozen</c>. /// </summary> /// <param name="e"></param> /// <remarks>Assigns <c>e.Graphics</c> to /// <c><see cref="YataGrid.graphics">YataGrid.graphics</see></c> for /// <c><see cref="YataGrid.PaintFrozenPanel()">YataGrid.PaintFrozenPanel()</see></c>.</remarks> protected override void OnPaint(PaintEventArgs e) { if (!YataGrid._init) { YataGrid.graphics = e.Graphics; YataGrid.graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; _grid.PaintFrozenPanel(); } }