private void txtSearch_TextChanged(object sender, EventArgs e) { LimitedAction.RunAfter(SearchLimitId, 500, () => { this.FilterAndUpdateUI(tvDirectories.SelectedNode?.FullPath); }); }
private void txtFind_TextChanged(object sender, EventArgs e) { LimitedAction.RunAfter(2, 500, delegate { if (string.IsNullOrEmpty(txtFind.Text)) { this.ClearHighlighting(); } else { this.HighlightText(txtFind.Text); } }); }