Beispiel #1
0
        //点击头像 显示详细信息
        private void pictureBox1_DoubleClick(object sender, EventArgs e)
        {
            IpDetail   = Ip;
            PortDetail = Port;
            GetUserInfo2();
            UserDetailInfo udi = new UserDetailInfo();

            udi.Tag = UserInfo;
            udi.Show(this);
        }
Beispiel #2
0
        //打开好友信息窗口
        private void it2_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count <= 0)
            {
                return;
            }
            ListViewItem ivi = listView1.SelectedItems[0];

            IpDetail   = ivi.SubItems[1].Text.ToString();
            PortDetail = ivi.SubItems[2].Text.ToString();

            GetUserInfo2();
            UserDetailInfo udi = new UserDetailInfo();

            udi.Tag = UserInfo;
            udi.Show(this);
        }