Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrmTalk frm = new FrmTalk(this._ft, this._frm, this._me, this._friend, this._nickName);

            frm.Show();
            this.Close();
        }
Example #2
0
        void ucf_MouseClick(object o, EventArgs e)
        {
            UCFriendInfo ucf = (UCFriendInfo)o;

            for (int i = 0; i < tbFriendTalkInfo.Count; i++)
            {
                if (tbFriendTalkInfo[i].FriendId == ucf.FriendInfo.userID)
                {
                    if (tbFriendTalkInfo[i].IsOpenTalkForm)
                    {
                        return;
                    }
                    else
                    {
                        tbFriendTalkInfo[i].IsOpenTalkForm = true;
                        break;
                    }
                }
            }


            FrmTalk frm = new FrmTalk(tbFriendTalkInfo, this, this._user, ucf.FriendInfo, ucf.NickName);

            frm.Show();
        }
Example #3
0
        private void 发送即时消息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UCFriendInfo ucf = (UCFriendInfo)currentRight;

            for (int i = 0; i < tbFriendTalkInfo.Count; i++)
            {
                if (tbFriendTalkInfo[i].FriendId == ucf.FriendInfo.userID)
                {
                    if (tbFriendTalkInfo[i].IsOpenTalkForm)
                    {
                        return;
                    }
                    else
                    {
                        tbFriendTalkInfo[i].IsOpenTalkForm = true;
                        break;
                    }
                }
            }


            FrmTalk frm = new FrmTalk(tbFriendTalkInfo, this, this._user, ucf.FriendInfo, ucf.NickName);

            frm.Show();
        }
Example #4
0
        private void pictalk_Click(object sender, EventArgs e)
        {
            if (this.FrmtalkIsOpen == true)
            {
                return;
            }
            FrmTalk frm = new FrmTalk(HeadImage, Iimage, UserID, id, UserName, _frmtalkIsOpen, Iname);

            frm.Show();
            this._frmtalkIsOpen = true;
        }