private void btnDelete_Click(object sender, EventArgs e) { if (cboxTeam.SelectedIndex >= 0) { selectTeam = (ChatStore)cboxTeam.SelectedItem; var rs = GlobalVariable.DelTeam(selectTeam.ChatUserName); if (rs) { GlobalVariable.ShowSuccess("分组删除成功"); BindTeam(); } else { GlobalVariable.ShowError("分组删除失败"); } } }