/// <summary/> public void ShowSummaryDialog(IWin32Window owner, ITsString tssWf, IHelpTopicProvider helpProvider, string helpFileKey, IVwStylesheet styleSheet) { CheckDisposed(); bool otherButtonClicked = false; using (SummaryDialogForm form = new SummaryDialogForm(this, tssWf, helpProvider, helpFileKey, styleSheet)) { form.ShowDialog(owner); if (form.ShouldLink) { form.LinkToLexicon(); } otherButtonClicked = form.OtherButtonClicked; } if (otherButtonClicked) { var entry = ShowFindEntryDialog(Object.Cache, Mediator, m_propertyTable, tssWf, owner); if (entry != null) { using (var leuiNew = new LexEntryUi(entry)) { leuiNew.ShowSummaryDialog(owner, entry.HeadWord, helpProvider, helpFileKey, styleSheet); } } else { // redisplay the original entry (recursively) ShowSummaryDialog(owner, tssWf, helpProvider, helpFileKey, styleSheet); } } }
/// <summary/> public void ShowSummaryDialog(IWin32Window owner, ITsString tssWf, IHelpTopicProvider helpProvider, string helpFileKey, IVwStylesheet styleSheet) { CheckDisposed(); bool otherButtonClicked = false; using (SummaryDialogForm form = new SummaryDialogForm(this, tssWf, helpProvider, helpFileKey, styleSheet)) { form.ShowDialog(owner); if (form.ShouldLink) form.LinkToLexicon(); otherButtonClicked = form.OtherButtonClicked; } if (otherButtonClicked) { var entry = ShowFindEntryDialog(this.Object.Cache, this.Mediator, tssWf, owner); if (entry != null) { using (var leuiNew = new LexEntryUi(entry)) { leuiNew.ShowSummaryDialog(owner, entry.HeadWord, helpProvider, helpFileKey, styleSheet); } } else { // redisplay the original entry (recursively) ShowSummaryDialog(owner, tssWf, helpProvider, helpFileKey, styleSheet); } } }