private void DataEditor_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete || e.KeyData == (Keys.Control | Keys.X)) { _dataEditorHelper.RemoveSelData(); } if (e.KeyData == (Keys.Control | Keys.A)) { _dataEditorHelper.SelAll(); } if (e.KeyData == (Keys.Control | Keys.D)) { _dataEditorHelper.ClearSel(); } if (e.KeyData == (Keys.Control | Keys.I)) { _dataEditorHelper.InvertSel(); } if (e.KeyData == (Keys.Alt | Keys.F)) { _dataEditorHelper.FocusSelection(); } if (e.KeyData == (Keys.Control | Keys.F)) { _dataEditorHelper.OpenSearchForm(); } if (e.KeyData == (Keys.Control | Keys.R)) { _dataEditorHelper.SelectRow(); } }
void assistant_Idled(object sender, EventArgs e) { assistant.WaitingMilliSeconds = 400; if (FileSearcher.GetInstance.Assets.Count > _maxLiveSearch) { assistant.WaitingMilliSeconds = assistant.WaitingMilliSeconds * (int)(1.2 * FileSearcher.GetInstance.Assets.Count / _maxLiveSearch); } if (FileSearcher.GetInstance.Assets.Count > (4 * _maxLiveSearch) || tb_SearchField.Text.Trim().Length < 3) { _dataEditorHelper.ClearSel(); return; } this.Invoke( new MethodInvoker(() => { _dataEditorHelper.FindItems(tb_SearchField.Text); })); }