示例#1
0
 void AppendItem(IndexInfo item)
 {
     listView1.Items.Add(new ListViewItem(new string[] { item.Path, item.Text.Length + " symbols" })
     {
         Tag = item
     });
 }
示例#2
0
 public static void AddIndex(IndexInfo ii)
 {
     if (Indexes.Any(z => z.Path == ii.Path))
     {
         return;
     }
     Indexes.Add(ii);
     if (IndexAdded != null)
     {
         IndexAdded(ii);
     }
 }
示例#3
0
 private void Stuff_IndexAdded(IndexInfo obj)
 {
     AppendItem(obj);
 }