Ejemplo n.º 1
0
 public FriendInfo(FriendData data)
     : this()
 {
     if (data != null)
     {
         lblName.Text    = data.Name;
         lblEmotion.Text = data.Emotion;
         tip.SetToolTip(lblEmotion, data.Emotion);
         Order    = data.Order;
         ChatName = data.Name;
         _tipForm = new FormEmploeeInfo(data.Data);
         _Id      = data.Data.EmployeeId;
         if (data.Image != null && data.Image.Length > 0)
         {
             OrginImage = data.Image;
             if (data.State == FriendState.Online)
             {
                 picImage.SetPicture(data.Image);
             }
             else
             {
                 picImage.SetPicture(data.Image);
                 picImage.SetPicGray();
             }
         }
         else
         {
             OrginImage = picImage.GetPictureStream();
             if (data.State == FriendState.OutLine)
             {
                 picImage.SetPicGray();
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void RefreashData(TEmployeeDTO dto)
 {
     lblName.Text    = dto.EmployeeName;
     lblEmotion.Text = dto.Emotion;
     tip.SetToolTip(lblEmotion, dto.Emotion); //心情
     _tipForm   = new FormEmploeeInfo(dto);   //资料
     OrginImage = dto.EntryImage;
     picImage.SetPicture(OrginImage);         //图标
     SetLocation();
 }