Example #1
0
        private void sideBar1_ItemDoubleClick(SbItemEventArgs e)
        {
            int      freindID = (int)e.Item.Tag;
            Frm_chat f        = new Frm_chat(this, this.userID, freindID);

            f.Show();
        }
Example #2
0
        // Token: 0x060001F1 RID: 497 RVA: 0x0000A4A0 File Offset: 0x000086A0
        private void sideBar1_ItemClick(SbItemEventArgs e)
        {
            SbGroup parent = e.Item.Parent;

            switch ((int)parent.Tag)
            {
            case 0:
                this.processGroup0(e.Item);
                return;

            case 1:
                this.processGroup1(e.Item);
                return;

            case 2:
                this.processGroup2(e.Item);
                return;

            case 3:
                this.processGroup3(e.Item);
                return;

            case 4:
                this.processGroup4(e.Item);
                return;

            default:
                return;
            }
        }
Example #3
0
        // 双击一项,弹出聊天窗体        
        private void sbFriends_ItemDoubleClick(SbItemEventArgs e)
        {
            // 消息timer停止运行
            if (tmrChatRequest.Enabled == true)
            {
                tmrChatRequest.Stop();                
                e.Item.ImageIndex = this.friendFaceId;
            }

            // 显示聊天窗体
            ChatForm chatForm = new ChatForm();
            chatForm.friendId = Convert.ToInt32(e.Item.Tag); // 号码
            chatForm.nickName = e.Item.Text;  // 昵称
            chatForm.faceId = e.Item.ImageIndex;  // 头像
            chatForm.Show();
        }
Example #4
0
        //双击一项,弹出聊天对话框
        private void sbFriends_ItemDoubleClick(SbItemEventArgs e)
        {
            //消息timer停止运行
            if (tmrChatRequest.Enabled == true)
            {
                tmrChatRequest.Stop();
                e.Item.ImageIndex = this.friendFaceId;
            }
            //显示聊天窗体
            ChatForm chatForm = new ChatForm();

            chatForm.friendId = Convert.ToInt32(e.Item.Tag); //号码
            chatForm.nickName = e.Item.Text;                 //昵称
            chatForm.faceId   = e.Item.ImageIndex;           //头像
            chatForm.Show();
        }
Example #5
0
        // 双击一项,弹出聊天窗体
        private void sbFriends_ItemDoubleClick(SbItemEventArgs e)
        {
            GetFriendsResponseModel friendModel = (GetFriendsResponseModel)e.Item.Tag;
            ChatForm chatForm = null;

            lock (this) {
                if (dicChats.ContainsKey(friendModel.friendid))
                {
                    chatForm = dicChats[friendModel.friendid];
                    chatForm.Show();
                }
                else
                {
                    // 显示聊天窗体
                    chatForm = new ChatForm(friendModel);
                    dicChats.Add(friendModel.friendid, chatForm);
                    chatForm.Show();
                }
                ((MyItem)e.Item).isShandong = false;
            }
        }
Example #6
0
 // 双击一项,弹出聊天窗体        
 private void sbFriends_ItemDoubleClick(SbItemEventArgs e)
 {
     // 消息timer停止运行
     if (tmrChatRequest.Enabled == true)
     {
         tmrChatRequest.Stop();
         e.Item.ImageIndex = this.friendFaceId;
     }
     ChatForm chatForm = null;
     String friendId = Convert.ToString(e.Item.Tag);
     // 显示聊天窗体
     if (!chatForms.ContainsKey(friendId))
     {
         chatForms.Add(friendId, new ChatForm());
     }
     chatForm = chatForms[friendId]; 
     chatForm.friendId = Convert.ToInt32(e.Item.Tag); // 号码
     chatForm.nickName = e.Item.Text;  // 昵称
     chatForm.faceId = e.Item.ImageIndex;  // 头像
     chatForm.Show();
 }
Example #7
0
        private void sideBar1_ItemDoubleClick(SbItemEventArgs e)
        {
            faceTimer.Enabled = false;

            SbItem item = e.Item;
            item.ImageIndex = friendFaceId;

            ChatForm2 cf = new ChatForm2();
            cf.friendNickName = item.Text;
            cf.friendQQ = Convert.ToInt32(item.Tag);

            cf.Show();
        }
Example #8
0
 private void sideBar1_ItemClick(SbItemEventArgs e)
 {
     SbItem item = e.Item;
     item.ImageIndex = friendFaceId;
     UserHelp.objectid = Convert.ToInt32(item.Tag);
 }