Пример #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;
     }
 }
Пример #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;
     }
 }