Beispiel #1
0
        private static void InvokeTimer(ITaskDialog sender, TimerArgs e)
        {
            TaskDialogEventHandler <TimerArgs> handler = Timer;

            if (handler != null)
            {
                handler(sender, e);
            }
        }
 private void CallbackTimerTick(object sender, EventArgs e)
 {
     if (null != Timer)
     {
         TimerArgs args = new TimerArgs((uint)DateTime.Now.Subtract(StartTime).TotalMilliseconds);
         Timer(this, args);
         if (args.Reset)
         {
             StartTime = DateTime.Now;
         }
     }
 }
Beispiel #3
0
 private static void TaskDialogTimer(ITaskDialog sender, TimerArgs e)
 {
     InvokeTimer(sender, e);
 }