C# için yazıyorum hocam

foreach(control emre in this.controls)
{
if(emre is button && emre.backcolor == color.green)
{
emre.performclick();
}
}