void DeselectAllExceptLast()
        {
            var indices = listView.SelectedIndices;

            for (int i = 0; i < (indices.Count - 1); i++)
            {
                listView.Deselect(indices[i]);
            }
        }