private async void CursorAsync_Elapsed(object sender, EventArgs e) { if (_stopRequested) { return; } _captureTask = _capture.CaptureWithCursorAsync(new FrameInfo(_recordClicked, _keyList)); FrameCount = await _captureTask; _keyList.Clear(); }