Пример #1
0
 protected sealed override void OnPaint(PaintEventArgs e)
 {
     base.OnPaint(e);
     if (view != null)
     {
         if (view.Debug)
         {
             view.OnPaint(new CGraphics(e.Graphics), Width, Height);
         }
         else
         {
             try {
                 view.OnPaint(new CGraphics(e.Graphics), Width, Height);
             } catch (Exception e1) {
                 MessageBox.Show(e1.Message + "\n" + e1.StackTrace);
             }
         }
     }
 }
Пример #2
0
 public void Print(IGraphics g)
 {
     view?.OnPaint(g, Width, Height);
 }