private void button2_Click(object sender, EventArgs e) { if (button2.Text == "加入单词本") { RecordService.AddCustomWord(MainWin.User, searchWord); button2.Text = "移出单词本"; } else { RecordService.RemoveCustomWord(MainWin.User, searchWord); button2.Text = "加入单词本"; } }