Example #1
0
 protected virtual void OnDoubleClickSubItem(ChatListEventArgs e)
 {
     if (this.DoubleClickSubItem != null)
         DoubleClickSubItem(this, e);
 }
Example #2
0
 protected virtual void OnMouseLeaveHead(ChatListEventArgs e)
 {
     if (this.MouseLeaveHead != null)
         MouseLeaveHead(this, e);
 }
Example #3
0
        private void chatListBox1_DoubleClickSubItem(object sender, ChatListEventArgs e)
        {
            ChatListSubItem cha = e.SelectSubItem;
            if (cha.IsTwinkle)
            {
                cha.IsTwinkle = !cha.IsTwinkle;
                RemoveFromChaterList(cha.userid);
                this.meaaageCountLabelOfXiaoXI.MessageCount = 0;
            }

            WkTUser w = new WkTUser();
            w = (WkTUser)baseService.loadEntity(w, cha.userid);

            if (chatwindowsusers == null)
            {
                chatwindowsusers = new List<WkTUser>();
            }
            if (!chatwindowsusers.Contains(w))
            {

                ChatWindows chat = new ChatWindows();
                chat.ReceiveUser = w;
                chat.SendUser = this.user;
                chat.Chatwindwosuser = chatwindowsusers;
                chat.Show();
            }
            else
            {

            }
        }