public override bool FindLink(string linkText, HyperlinkForm caller) { using (SelectGlossaryLinkForm glossaryForm = new SelectGlossaryLinkForm()) { if (linkText != String.Empty) { glossaryForm.SetSelected(linkText); } if (DialogResult.OK == glossaryForm.ShowDialog()) { GlossaryLinkItem chosen = glossaryForm.SelectedEntry; caller.LinkText = chosen.Text; caller.Hyperlink = chosen.Url; caller.LinkTitle = chosen.Title; caller.IsInGlossary = true; return(true); } } return(false); }
public override bool FindLink(string linkText, HyperlinkForm caller) { using (SelectGlossaryLinkForm glossaryForm = new SelectGlossaryLinkForm()) { if (linkText != String.Empty) { glossaryForm.SetSelected(linkText); } if (DialogResult.OK == glossaryForm.ShowDialog()) { GlossaryLinkItem chosen = glossaryForm.SelectedEntry; caller.LinkText = chosen.Text; caller.Hyperlink = chosen.Url; caller.LinkTitle = chosen.Title; caller.IsInGlossary = true; return true; } } return false; }