public void UserDidSearch(object sender) { string value = searchBox.Value; int index = indexBrowser.SelectedRowInColumn(0); if (value != null) { Console.WriteLine("Searching for {0}", value); index = IndexDataSource.FindClosest(value); } indexBrowser.SelectRowInColumn(index, 0); }
public void browserDoubleAction(Cocoa.Object sender) { IndexEntry entry = IndexDataSource.GetEntry(indexBrowser.SelectedRowInColumn(0)); if (entry != null) { Topic t = entry[0]; Node match; string content = help_tree.RenderUrl(t.Url, out match); content = content.Replace("a href='", "a href='http://monodoc/load?"); content = content.Replace("a href=\"", "a href=\"http://monodoc/load?"); webView.Render(content); addHistoryItem(t.Url); } }