Exemple #1
0
        private void AddResultToListView(RegSearchMatch result)
        {
            var item = lstResults.Items.Add(result.Key);

            item.Tag = result;
            item.SubItems.Add(RegUtility.GetRegValueName(result.Value));
            item.SubItems.Add(result.Data);
        }
Exemple #2
0
 private void lstResults_DoubleClick(object sender, EventArgs e)
 {
     if (lstResults.SelectedItems.Count == 1)
     {
         RegSearchMatch match = lstResults.SelectedItems[0].Tag as RegSearchMatch;
         if (JumpToKey(match.Key))
         {
             if (match.Value != "-")
             {
                 string       valueName = RegUtility.GetRegValueName(match.Value);
                 ListViewItem item      = lstValues.Items[valueName];
                 if (item != null)
                 {
                     item.Selected = true;
                     lstValues.Focus();
                 }
             }
         }
     }
 }