void onButtonClick(int id, string label) { if(id == buttonA) { // Code for button A }else if(id == buttonB) { // Code for button B } }