I've tried to call a function from a button on a window. But nothing happens. I am calling it as I would in a console app but that's not working. How do you call it from a button? thanks