Bir metot yaz ve iki buton için de ortak çalışmasını istediğin kodları bu metot içerisine yaz. Her iki butonun da click event inde bu metodu çağır.