Esempio n. 1
0
 public Dialog(User user)
 {
     InitializeComponent();
     if (user == null)   return;
     //设置标题,图标
     this.user = user;
     title.Content = Title = user.DisplayName;
     //this.Icon = new ImagePathConverter().getHead(user);
 }
Esempio n. 2
0
 public ImageSource getHead(User user)
 {
     return getHead(user.UserName, user.HeadImgUrl);
 }