public void ShowFindReplaceDialog(bool showReplace, bool showAll) { _creatingDialog = true; CreateDialog(showReplace, showAll); _dialog.Show(); _dialog.Focus(); _creatingDialog = false; }
private void browserDesign_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { modifiedDocument = true; if (e.KeyData == (Keys.Control | Keys.F)) { modeTabs.SelectedTab = tabEditor; FindReplaceDialog dlgFind = new FindReplaceDialog(); dlgFind.Scintilla = editor; dlgFind.ShowDialog(); dlgFind.Activate(); dlgFind.Focus(); return; } }