Button not Firing

image
image
I am trying to test your demo but it doesnt work...

cannot convert from 'void' to 'bool'

this is the error

image

Cannot convert lambda expression to type 'bool' because i
t is not a delegate type

this way it gives this error

This is not the proper way to attach Click event. Check this demo for reference: