Fixed Bug 6620 - Cannot properly remove item from current solution

Bug happened because after deletion file, the solution was not save.
You could use a HashSet<T> instead of List<T> which means you don't have to check if the item already exists in the List. It makes the code a little easier to understand.