Click is an event - so you can't compare it to a boolean value.
What you actually need to do is look inside the Event handler at the
sender
parameter, which identifies the button that was pressed:
private void AnyOfMyButtons_Click(object sender, EventArgs e)
{
Button wasClicked = sender as Button;
if (wasClicked != null)
{
Console.WriteLine(wasClicked.Text);
}
}
Will print the text on the button that was clicked, for example.