SIL.FieldWorks.Common.Framework.FwApp.ShowFindReplaceDialog C# (CSharp) Méthode

ShowFindReplaceDialog() public méthode

Display the Find/Replace modeless dialog
public ShowFindReplaceDialog ( bool fReplace, SIL.FieldWorks.Common.RootSites.RootSite rootsite ) : bool
fReplace bool true to make the replace tab active
rootsite SIL.FieldWorks.Common.RootSites.RootSite The view where the find will be conducted
Résultat bool
		public bool ShowFindReplaceDialog(bool fReplace, RootSite rootsite)
		{
			CheckDisposed();

			if (rootsite == null || rootsite.RootBox == null)
				return false;

			int hvoRoot, frag;
			IVwViewConstructor vc;
			IVwStylesheet ss;
			rootsite.RootBox.GetRootObject(out hvoRoot, out vc, out frag, out ss);
			if (hvoRoot == 0)
				return false;

			if (FindReplaceDialog == null)
			{
				m_findReplaceDlg = new FwFindReplaceDlg();
				ConfigureFindReplacedialog();
			}

			bool fOverlay = (rootsite.RootBox.Overlay != null);

			if (m_findReplaceDlg.SetDialogValues(rootsite.Cache, FindPattern,
				rootsite, fReplace, fOverlay, rootsite.FindForm(), this, this))
			{
				m_findReplaceDlg.Show();
				return true;
			}
			return false;
		}
		#endregion