void XCodeTextBox_KeyDownHandler(object sender, KeyEventArgs e) { if (Keyboard.Modifiers != ModifierKeys.Control) { return; } if (e.Key == Key.F) { FindReplaceDialog.Show(XCodeTextBox, FindReplaceDialog.SearchType.Find); e.Handled = true; } if (e.Key == Key.H) { FindReplaceDialog.Show(XCodeTextBox, FindReplaceDialog.SearchType.Replace); e.Handled = true; } if (e.Key == Key.OemPlus) { XCodeTextBox.FontSize++; e.Handled = true; } if (e.Key == Key.OemMinus) { if (XCodeTextBox.FontSize > MIN_FONT_SIZE) { XCodeTextBox.FontSize--; } e.Handled = true; } }
public void ShowFindReplaceDialog(bool showReplace, bool showAll) { _creatingDialog = true; CreateDialog(showReplace, showAll); _dialog.Show(); _dialog.Focus(); _creatingDialog = false; }
internal void DoFind() { FindReplaceDialog diag = new FindReplaceDialog(); diag.EnableReplace = false; diag.FindNext += new EventHandler(diag_FindNext); diag.Closed += new EventHandler(diagFind_Closed); diag.Show(); }
internal void DoReplace() { FindReplaceDialog diag = new FindReplaceDialog(); diag.EnableReplace = true; diag.FindNext += new EventHandler(diag_FindNext); diag.Replace += new EventHandler(diag_Replace); diag.ReplaceAll += new EventHandler(diag_ReplaceAll); diag.Closed += new EventHandler(diag_Closed); diag.Show(); }