Пример #1
0
 private void btnReplaceAll_Click(object sender, RoutedEventArgs e)
 {
     PopulateComboBox("Find");
     PopulateComboBox("Replace");
     ReplaceAll?.Invoke(this, e);
 }
Пример #2
0
 /// <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));
 }
Пример #3
0
 /* ----------------------------------------------------------------- */
 ///
 /// OnReplaceAll
 ///
 /// <summary>
 /// ReplaceAll イベントを発生させます。
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 protected virtual void OnReplaceAll(EventArgs e)
 => ReplaceAll?.Invoke(this, e);