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("分组删除失败"); } } }
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(); }
public ChatManager(ChatStore chatStore) { _chatStore = chatStore; }
public MessageManager(ChatStore chatStore) { _chatStore = chatStore; }
public ChatManager() { _chatStore = new ChatStore(); }