The name "Title" does not exist in the current context.

You either want to save it temporarily in an instance variable of the class, or pass it as an argument to the ProcessButton method. In order to make the latter work, you might need to return it from the method that resolves the selected item.

I also highly recommend to rename the methods for the sake of clarity.

Last but not least, please use code tags when you want to insert code.

1 Like