My program has a tree view linked to a model that allows the addition and deletion of elements. When the currently selected item changes I have to perform operations related