I have a TreeView and 2 ListView in my program.
Please imagin the following picutre:

The first treeview is populated by some xml files. the text property of it is the filename (without ext) and its tag is the path to file.
If user clicks on any of the TreeNodes, the ListView on the middle will be filled with some data within the clicked xml file and if user clicks on them, the last ListView will also by filled by the data within that part of the xml file.
Now, my question is:
I already made a context menu for the last ListView so if user right clicks on an item, he/she can select that pin to add it to an ignor list. The problem is, I do not know how to make this ignor list, so if he/she goes to another file and do something else and when he/she comebacks to that TreeNode/ListView which he/she already added a “Pin” to ignor list (Here everything will regenrate again) that pin does not show in the list. (Note that I do not want to delete anything from the xml files!)
Please let me know if the question is not CLEAR!

One way to do it would be to create a class that can keep track of ignore information. Something along the lines of:
You can then create a
Dictionary<PinInformation, List<string>>object that keeps track of the elements that are ignored:Now its simple to keep in sync the elements you are showing in your UI with the info stored in the ignore tracking system we’ve created.