So I have this application I've made that displays data from an XML file on stickynotes on a scrollable bulletinboard. When the stickynotes are created, one is made for each node in the xml, and they're each assigned different nodes to display. When doubleclicked, they expand and show additional information. They can be closed by doubleclicking again. I'm trying to make it so that when you try to open a note when one is already open it closes the other one then opens the one you clicked. I can't get this to work. It seems that it's not picking the right instance when I tell it to.
EDIT
I fixed it...