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