Beispiel #1
0
 public Chat(Friends.InfoofFriend myFriendInfo)
 {
     InitializeComponent();
     //好友的基本信息
     myfriendinfo = myFriendInfo;
     myid = Friends.myInfo.id;
     
     //处理窗口文字内容
     this.Text = myFriendInfo.nickname;
     label2.Text = "来自\"" + myFriendInfo.nickname + "\"的消息";
     if (myFriendInfo.sex=="男")
         pictureBox2.BackgroundImage = SeekMe.Properties.Resources.boy;
     else
         pictureBox2.BackgroundImage = SeekMe.Properties.Resources.girl;
 }
Beispiel #2
0
        public Chat(Friends.InfoofFriend myFriendInfo)
        {
            InitializeComponent();
            //好友的基本信息
            myfriendinfo = myFriendInfo;
            myid         = Friends.myInfo.id;

            //处理窗口文字内容
            this.Text   = myFriendInfo.nickname;
            label2.Text = "来自\"" + myFriendInfo.nickname + "\"的消息";
            if (myFriendInfo.sex == "男")
            {
                pictureBox2.BackgroundImage = SeekMe.Properties.Resources.boy;
            }
            else
            {
                pictureBox2.BackgroundImage = SeekMe.Properties.Resources.girl;
            }
        }