Multiple locks

How can I have a button to lock or unlock two locks at the same time?