Example #1
0
 private void PreciousTimer_Elapsed(object sender, ElapsedEventArgs e)
 {
     if (Delta <= 10 && Delta >= -40)
     {
         PreciousTimer.Stop();
         Callback(this);
     }
 }
Example #2
0
 private void CheckTime(object sender, ElapsedEventArgs e)
 {
     if (Delta < 0)
     {
         throw new Exception();
     }
     if (Delta < 1500)
     {
         PreciousTimer.Start();
         MainTimer.Stop();
     }
 }