Ejemplo n.º 1
0
 private void Hpanel_Paint(object sender, PaintEventArgs e)
 {
     try
     {
         if (splitCheckBox.Checked.Value)
         {
             using (var ib = new ImageBridge(hpanel.Width, hpanel.Height))
             {
                 renderer.DrawHeader(ib.Graphics, (scrollable.ClientSize.Width + panel.Width) / 2);
                 ib.CoptyToEto(e.Graphics);
             }
         }
     }
     catch
     { }
 }
Ejemplo n.º 2
0
        private void Hpanel_Paint(object sender, PaintEventArgs e)
        {
            try
            {
                if (renderer == null)
                {
                    e.Graphics.Clear(Colors.White);
                    return;
                }

                if (splitCheckBox.Checked !.Value)
                {
                    using (var ib = new ImageBridge(hpanel.Width, hpanel.Height))
                    {
                        renderer.DrawHeader(ib.Graphics, (scrollable.ClientSize.Width + panel.Width) / 2, exportColor: false);
                        ib.CoptyToEto(e.Graphics);
                    }
                }
            }
            catch
            { }
        }