void OnIndexRowSelected (int targetRow) { current_entry = mdocSearch.GetIndexEntry (targetRow); if (current_entry == null) return; multipleMatchResults.ReloadData (); if (current_entry.Count > 1){ multipleMatchResults.SelectRow (0, false); multipleMatchResults.ScrollRowToVisible (0); ShowMultipleMatches (); } else { HideMultipleMatches (); LoadUrl (current_entry [0].Url); } }
public void AddTopic (Topic topic) { IndexEntry entry; if (!entries.TryGetValue (topic.SortKey, out entry)) { entry = new IndexEntry (); entries[topic.SortKey] = entry; } AddString (topic.SortKey); AddString (topic.Caption); AddString (topic.Url); entry.Add (topic); }
void LoadMultipleMatchData (IndexEntry entry) { multipleMatchList.Nodes.Clear (); for (int i = 0; i < entry.Count; i++) multipleMatchList.Nodes.Add (new TreeNode (RenderTopicMatch (entry[i])) { Tag = entry[i] }); }
void ConfigureIndex (int index) { current_entry = index_reader.GetIndexEntry (index); if (current_entry.Count > 1){ browser.matches.Show (); match_list.Reload (); match_list.Refresh (); } else { browser.matches.Hide (); } }
public void AddTopic (Topic topic) { IndexEntry entry = (IndexEntry) entries [topic.SortKey]; if (entry == null){ entry = new IndexEntry (); entries [topic.SortKey] = entry; } add_string (topic.SortKey); add_string (topic.Caption); add_string (topic.Url); entry.Add (topic); }