📅  最后修改于: 2022-03-11 14:49:19.439000             🧑  作者: Mango
void button_Click(Object sender, EventArgs e)
{
var button = sender as Button;
if(button != null)
{
button.Text = "X";
button.ForeColor = System.Drawing.Color.Red;
}
}