예제 #1
0
 public static void SetTimeout(int milliseconds, Action func)
 {
     var timer = new DispatcherTimerContainingAction
     {
         Interval = new TimeSpan(0, 0, 0, 0, milliseconds),
         Action = func
     };
     timer.Tick += _onTimeout;
     timer.Start();
 }
예제 #2
0
 public UiHelper()
 {
     timer = new DispatcherTimerContainingAction();
 }