How to recover deleted methods on a button in a form

Accidently i deleted buttons as well as methods for tht button.I am not able to restore as well as not able to recover it from recycle .I am working on AX 3 .Plz help

if it was a system design(sys layer) u can just delete the form and it would be restored to system i.e the entire customisation would be deleted .

Take a xpo of the customization and delete the user layer of that particular form.