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