private void UndoMarkMatchForReplace() { if (SelectedGrepMatch != null) { SelectedGrepMatch.ReplaceMatch = false; ReplaceMatch?.Invoke(this, EventArgs.Empty); } }
private void MarkMatchForReplace() { if (SelectedGrepMatch != null) { SelectedGrepMatch.ReplaceMatch = true; ReplaceMatch?.Invoke(this, EventArgs.Empty); } SelectNextMatch(); }
private void UndoAllMarksInFile() { if (SelectedSearchResult != null) { foreach (var match in SelectedSearchResult.Matches) { match.ReplaceMatch = false; } ReplaceMatch?.Invoke(this, EventArgs.Empty); } }
private void MarkAllInFile() { if (SelectedSearchResult != null) { foreach (var match in SelectedSearchResult.Matches) { match.ReplaceMatch = true; } FormatFileReplaceStatus(); ReplaceMatch?.Invoke(this, EventArgs.Empty); } }
private void ReplaceAll() { if (SearchResults != null) { foreach (GrepSearchResult gsr in SearchResults) { foreach (var m in gsr.Matches) { m.ReplaceMatch = true; } } ReplaceMatch?.Invoke(this, EventArgs.Empty); } CloseTrue?.Invoke(this, EventArgs.Empty); }