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