input get button uibutton

C#
	public void ButtonClick()
    {                 
    	//Do whatever you want here             
    }
Source

Also in C#: