예제 #1
0
 public void ShowFindReplaceDialog(bool showReplace, bool showAll)
 {
     _creatingDialog = true;
     CreateDialog(showReplace, showAll);
     _dialog.Show();
     _dialog.Focus();
     _creatingDialog = false;
 }
예제 #2
0
        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;
            }
        }