if(checkbox1.checked==true &&checkbox2.checked==true)
tarzında kontroller yapmalısın.

bu kontrollerin içine ister direk düz kod yazarsın istersende fonksiyonlar oluşturup onları çağırırısın.