示例#1
0
 public bool needsPause()
 {
     if (slowTaskDetector == null)
     {
         return(false);
     }
     return(slowTaskDetector.checkWithinTimeLimit());
 }
示例#2
0
 public static bool safeCheckTimeLimit(this SlowTaskDetector task)
 {
     if (task == null)
     {
         return(true);
     }
     return(task.checkWithinTimeLimit());
 }
示例#3
0
 public void checkRepaint()
 {
     if (repaintTrigger == null)
     {
         return;
     }
     if (repaintTrigger.checkWithinTimeLimit())
     {
         return;
     }
     repaintWindow();
 }