private void button1_Click(object sender, EventArgs e) { BLL.cardinfo bll = new BLL.cardinfo(); bool isOK = bll.ChangeState(CardID); if (isOK) { if (button1.Text == "挂失") { label1.Text = "挂失操作成功"; button1.Text = "取消挂失"; } else { label1.Text = "取消挂失操作成功"; button1.Text = "挂失"; } } else { label1.Text = "操作失败"; } }