private void btnReplaceAll_Click(object sender, RoutedEventArgs e) { PopulateComboBox("Find"); PopulateComboBox("Replace"); ReplaceAll?.Invoke(this, e); }
/// <summary> /// This is used to replace all occurrences of the specified word /// </summary> /// <param name="word">The word to be replaced</param> /// <param name="replacement">The suggestion to use as the replacement</param> public void ReplaceAllOccurrences(string word, ISpellingSuggestion replacement) { ReplaceAll?.Invoke(this, new SpellingEventArgs(word, replacement)); }
/* ----------------------------------------------------------------- */ /// /// OnReplaceAll /// /// <summary> /// ReplaceAll イベントを発生させます。 /// </summary> /// /* ----------------------------------------------------------------- */ protected virtual void OnReplaceAll(EventArgs e) => ReplaceAll?.Invoke(this, e);