public void RefreshSearchWnd(string txt, bool AllFile) { if (CurrentSearchWnd == null) { System.Windows.Application.Current.Dispatcher.Invoke( () => BabePackage.Current.ShowSearchWindow1(null, null) ); } if (CurrentSearchWnd != null) { if (CurrentSearchWnd == SearchWndPane1.Current) { System.Windows.Application.Current.Dispatcher.Invoke( () => BabePackage.Current.ShowSearchWindow1(null, null) ); } else { System.Windows.Application.Current.Dispatcher.Invoke( () => BabePackage.Current.ShowSearchWindow2(null, null) ); } CurrentSearchWnd.Search(txt, AllFile); } }
public void RefreshSearchWnd(string txt, bool AllFile, bool CaseSensitive, bool WholeWordMatch = true) { if (CurrentSearchWnd == null) { System.Windows.Application.Current.Dispatcher.Invoke(() => ShowSearchWindow1() ); } if (CurrentSearchWnd != null) { if (CurrentSearchWnd == SearchWndPane1.Current) { System.Windows.Application.Current.Dispatcher.Invoke( () => ShowSearchWindow1() ); } else { System.Windows.Application.Current.Dispatcher.Invoke( () => ShowSearchWindow2() ); } CurrentSearchWnd.Search(txt, AllFile, WholeWordMatch, CaseSensitive); } }