Exemplo n.º 1
0
        private void btnAddStudent_Click_1(object sender, EventArgs e)
        {
            if (onLineListView.CheckedItems.Count <= 0)
            {
                GlobalVariable.ShowWarnning("请先选择要添加的客户端");
                return;
            }

            if (cboxTeam2.SelectedIndex < 0)
            {
                GlobalVariable.ShowWarnning("请先选择要添加的分组");
                return;
            }
            selectTeam = (Team)cboxTeam2.SelectedItem;
            GlobalVariable.AddTeamMembers(ConvertToUserList(onLineListView), selectTeam.TeamId);
            teamIsChange = true;
            BindTeamMember();
        }