Efficient way to fire 2 diff events with the same button on each click?
- by Tomasusa
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 !