public void findAll(NSObject sender) { Unused.Value = sender; OnUpdateLists(); string dir = Directory.description(); Re re = new Re { UseRegex = UseRegex, CaseSensitive = CaseSensitive, MatchWords = MatchWords, WithinText = WithinText, Pattern = FindText, }; var findAll = new FindAll(dir, re.Make(), Include, AllExcludes()); findAll.Title = string.Format("Find '{0}'", FindText); findAll.Run(); Unused.Value = new FindResultsController(findAll); // FindResultsController will handle retain counts and references }
public void replaceAll(NSObject sender) { Unused.Value = sender; OnUpdateLists(); string dir = Directory.description(); Re re = new Re { UseRegex = UseRegex, CaseSensitive = CaseSensitive, MatchWords = MatchWords, WithinText = WithinText, Pattern = FindText, }; var replaceAll = new ReplaceAll(dir, re.Make(), ReplaceText, Include, AllExcludes()); replaceAll.Title = string.Format("Replacing '{0}' with '{1}'.", FindText, ReplaceText); replaceAll.Run(); Unused.Value = new FindProgressController(replaceAll); // FindProgressController will handle retain counts and references }
private void DoMakeRe() { m_re = new Re { UseRegex = m_find.UseRegex, CaseSensitive = m_find.CaseSensitive, MatchWords = m_find.MatchWords, WithinText = m_find.WithinText, Pattern = FindText, }; m_regex = m_re.Make(); }