コード例 #1
0
		public static void ShowSingleInstance(SearchAndReplaceMode searchAndReplaceMode)
		{
			if (Instance == null) {
				Instance = new SearchAndReplaceDialog(searchAndReplaceMode);
				Instance.Show(WorkbenchSingleton.MainForm);
			} else {
				if (searchAndReplaceMode == SearchAndReplaceMode.Search) {
					Instance.searchButton.PerformClick();
				} else {
					Instance.replaceButton.PerformClick();
				}
				Instance.Focus();
			}
		}
コード例 #2
0
 public static void ShowSingleInstance(SearchAndReplaceMode searchAndReplaceMode)
 {
     if (Instance == null)
     {
         Instance = new SearchAndReplaceDialog(searchAndReplaceMode);
         Instance.Show(WorkbenchSingleton.MainWin32Window);
     }
     else
     {
         if (searchAndReplaceMode == SearchAndReplaceMode.Search)
         {
             Instance.searchButton.PerformClick();
         }
         else
         {
             Instance.replaceButton.PerformClick();
         }
         Instance.Focus();
     }
 }
コード例 #3
0
		protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
		{
			base.OnClosing(e);
			Instance = null;
		}
コード例 #4
0
 public override void Run()
 {
     SetSearchPattern();
     SearchAndReplaceDialog.ShowSingleInstance(SearchAndReplaceMode.Search);
 }
コード例 #5
0
 protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
 {
     base.OnClosing(e);
     Instance = null;
 }