public override void Run()
		{
			if (SearchOptions.CurrentFindPattern.Length > 0) {
				SearchReplaceManager.FindNext(null);
			} else {
				Find find = new Find();
				find.Run();
			}
		}
 public override void Run()
 {
     if (SearchOptions.CurrentFindPattern.Length > 0)
     {
         SearchReplaceManager.FindNext(null);
     }
     else
     {
         Find find = new Find();
         find.Run();
     }
 }
예제 #3
0
		public override void Run()
		{
			if (SearchOptions.CurrentFindPattern.Length > 0) {
				var location = new SearchLocation(SearchOptions.SearchTarget, SearchOptions.LookIn, SearchOptions.LookInFiletypes, SearchOptions.IncludeSubdirectories, SearchOptions.SearchTarget == SearchTarget.CurrentSelection ? SearchManager.GetActiveSelection(true) : null);
				var strategy = SearchStrategyFactory.Create(SearchOptions.FindPattern, !SearchOptions.MatchCase, SearchOptions.MatchWholeWord, SearchOptions.SearchMode);
				var result = SearchManager.FindNext(strategy, location);
				SearchManager.SelectResult(result);
			} else {
				Find find = new Find();
				find.Run();
			}
		}
예제 #4
0
 public override void Run()
 {
     if (SearchOptions.CurrentFindPattern.Length > 0)
     {
         var location = new SearchLocation(SearchOptions.SearchTarget, SearchOptions.LookIn, SearchOptions.LookInFiletypes, SearchOptions.IncludeSubdirectories, SearchOptions.SearchTarget == SearchTarget.CurrentSelection ? SearchManager.GetActiveSelection(true) : null);
         var strategy = SearchStrategyFactory.Create(SearchOptions.FindPattern, !SearchOptions.MatchCase, SearchOptions.MatchWholeWord, SearchOptions.SearchMode);
         var result   = SearchManager.FindNext(strategy, location);
         SearchManager.SelectResult(result);
     }
     else
     {
         Find find = new Find();
         find.Run();
     }
 }
예제 #5
0
파일: FormMain.cs 프로젝트: nhannhan159/PAT
 private void btnFind_Click(object sender, EventArgs e)
 {
     try
     {
         Find Find = new Find();
         Find.Run();
     }
     catch (Exception ex)
     {
         Utilities.LogException(ex, null);
     }
 }