I have a C# button, let's say 'ON/OFF':
I want to change 'OFF', when we first click it and run buttonOFF() When we click again, it changes to 'ON' and run buttonON()
and so on..
What's the correct way to do that? Can I do it all in one onClick event? peace of small example would be useful. Thanks !