private void _timer_Tick(object sender, EventArgs e) { var dt = DateTime.Now - _lastClick; if (dt.TotalMilliseconds > Interval) { OnRelease?.Execute(null); _timer.Stop(); } }
private void _timer_Tick(object sender, EventArgs e) { var dt = DateTime.Now - _lastClick; if (dt.TotalMilliseconds > Interval) { OnRelease?.Execute(null); _timer.Stop(); } }