예제 #1
0
 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("分组删除失败");
         }
     }
 }
예제 #2
0
        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();
        }
예제 #3
0
 public ChatManager(ChatStore chatStore)
 {
     _chatStore = chatStore;
 }
예제 #4
0
 public MessageManager(ChatStore chatStore)
 {
     _chatStore = chatStore;
 }
예제 #5
0
 public ChatManager()
 {
     _chatStore = new ChatStore();
 }