Ejemplo n.º 1
0
 public static void Repaint()
 {
     if (Profiler == null)
     {
         Profiler = new DProf("Derma.Repaint");
     }
     if (CanRepaint())
     {
         Profiler.Start();
         workspace.Refresh();
         Profiler.End();
         ((Main)workspace)._DebugLabelMain.Text = Profiler.GetSpew();
         lastPaint    = DateTime.Now;
         NeedsRefresh = false;
     }
     else
     {
         NeedsRefresh = true;
     }
 }
Ejemplo n.º 2
0
 public static void Repaint()
 {
     if(Profiler == null){Profiler=new DProf("Derma.Repaint");}
     if (CanRepaint())
     {
         Profiler.Start();
         workspace.Refresh();
         Profiler.End();
         ((Main)workspace)._DebugLabelMain.Text = Profiler.GetSpew();
         lastPaint = DateTime.Now;
         NeedsRefresh = false;
     }else
     {
         NeedsRefresh = true;
     }
 }