private void RefreshView() { if (Source == null) { return; } MicroAgo.Text = ConverterHelper.Ago(Source.CreatedAt); if (Source.User != null) { MicroAvatar.ProfilePicture = ConverterHelper.ToImg(Source.User.Avatar); MicroName.Text = MicroAvatar.DisplayName = Source.User.Name; } MicroContent.Content = Source.Content; MicroContent.Rules = Source.ExtraRule; MicroFile.Items = Source.Attachment; }
private void RefreshView() { if (Source == null) { return; } TimeTb.Text = ConverterHelper.Ago(Source.CreatedAt); if (Source.User != null) { AvatarImg.ProfilePicture = ConverterHelper.ToImg(Source.User.Avatar); UserTb.Text = AvatarImg.DisplayName = Source.User.Name; } ContentTb.Content = Source.Content; ContentTb.Rules = Source.ExtraRule; if (Source.Children != null && Source.Children.Count > 0) { ExpandBtn.Visibility = Visibility.Visible; ChildrenBox.Items = Source.Children; } else { ExpandBtn.Visibility = Visibility.Collapsed; } }