private void btnAddStudent_Click(object sender, EventArgs e) { if (onLineListView.CheckedItems.Count <= 0) { GlobalVariable.ShowWarnning("请先选择要添加的学生"); return; } if (cboxTeam2.SelectedIndex < 0) { GlobalVariable.ShowWarnning("请先选择要添加的分组"); return; } selectTeam = (ChatStore)cboxTeam2.SelectedItem; GlobalVariable.AddTeamMember(onLineListView.CheckedItems, selectTeam.ChatUserName); BindTeamMember(); }