private async void StartTimerAsync() { if (_question) { ButtonCancel.Content = _textButtonCancel + $" ({_timer} с.)"; } else { ButtonOK.Content = _textButtonOK + $" ({_timer} с.)"; } _timer--; if (_timer >= 0) { await OtherMethods.StartTimerPause(); StartTimerAsync(); } else if (_timer < 0) { ClosedByTimeout = true; Close(); } }
private async void ResetCountMouseLeftBtnDownAsync() { await OtherMethods.StartTimerPause(0.5); _countMouseLeftBtnDown = 0; }