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

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

                ReplaceMatch?.Invoke(this, EventArgs.Empty);
            }
        }
Ejemplo n.º 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);
        }