示例#1
0
 private void UndoMarkMatchForReplace()
 {
     if (SelectedGrepMatch != null)
     {
         SelectedGrepMatch.ReplaceMatch = false;
         ReplaceMatch?.Invoke(this, EventArgs.Empty);
     }
 }
示例#2
0
        private void MarkMatchForReplace()
        {
            if (SelectedGrepMatch != null)
            {
                SelectedGrepMatch.ReplaceMatch = true;
                ReplaceMatch?.Invoke(this, EventArgs.Empty);
            }

            SelectNextMatch();
        }
示例#3
0
 private void UndoAllMarksInFile()
 {
     if (SelectedSearchResult != null)
     {
         foreach (var match in SelectedSearchResult.Matches)
         {
             match.ReplaceMatch = false;
         }
         ReplaceMatch?.Invoke(this, EventArgs.Empty);
     }
 }
示例#4
0
        private void MarkAllInFile()
        {
            if (SelectedSearchResult != null)
            {
                foreach (var match in SelectedSearchResult.Matches)
                {
                    match.ReplaceMatch = true;
                }
                FormatFileReplaceStatus();

                ReplaceMatch?.Invoke(this, EventArgs.Empty);
            }
        }
示例#5
0
        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);
        }