private void chatListBox1_ClickSubItem(object sender, ChatListClickEventArgs e, MouseEventArgs es) { if (choose != e.SelectSubItem.NicName) { choose = e.SelectSubItem.NicName; displayer.Html = MessageUtil.Get(choose); displayer.GoBottom(); } }
private void chatListBox_ClickSubItem(object sender, ChatListClickEventArgs e, MouseEventArgs es) { ChatListBoxEvent chatListBoxEvent = new ChatListBoxEvent(mdiTabControl, this.skinSplitContainer2.Panel1); //MessageBox.Show("你单击了" + e.SelectSubItem.NicName); if (string.IsNullOrEmpty(e.SelectSubItem.NicName)) { return; } chatListBoxEvent.GetTaskInfo(Convert.ToInt32(e.SelectSubItem.NicName)); }
private void clb_member_UpSubItem(object sender, ChatListClickEventArgs e, MouseEventArgs es) { if (es.Button != MouseButtons.Right) { return; } var userId = e.SelectSubItem.ID; if (Class1.UserId != groupChat.Owner || userId == Class1.UserId) { return; } selectId = userId; mnu_strip1.Show(MousePosition.X, MousePosition.Y); }
private void ChatListBox_UpSubItem(object sender, ChatListClickEventArgs e, MouseEventArgs es) { if (es.Button != MouseButtons.Right) { return; } selectId = e.SelectSubItem.ID; if (Class1.chatListSubItemPool.ContainsKey(selectId) && Class1.chatListSubItemPool[selectId] == e.SelectSubItem) { mnu_strip.Show(MousePosition.X, MousePosition.Y); } else if (Class1.groupItemPool.ContainsKey(selectId) && Class1.groupItemPool[selectId] == e.SelectSubItem) { if (Class1.GetGroupInfo(selectId).Owner == Class1.UserId) { mnu_strip1.Show(MousePosition.X, MousePosition.Y); } else { mnu_strip2.Show(MousePosition.X, MousePosition.Y); } } }
private void chatListBox1_ClickSubItem(object sender, ChatListClickEventArgs e, MouseEventArgs es) { this.labChatTitle.Text = "与" + DateTime.Now.ToLongTimeString() + "的对话:"; }