Exemplo n.º 1
0
        public ResultUser(ResultBox.User user)
        {
            InitializeComponent();

            Mid            = user.Mid;
            UnameBox.Text  = user.Uname;
            VideosBox.Text = BiliApi.FormatNum(user.Videos, 1);
            FansBox.Text   = BiliApi.FormatNum(user.Fans, 1);
            UsignBox.Text  = user.Usign;

            ImageBox.Source = new BitmapImage(new Uri(user.Upic));
        }
Exemplo n.º 2
0
        public ResultUser(ResultBox.User user)
        {
            InitializeComponent();

            Mid            = user.Mid;
            UnameBox.Text  = user.Uname;
            VideosBox.Text = BiliApi.FormatNum(user.Videos, 1);
            FansBox.Text   = BiliApi.FormatNum(user.Fans, 1);
            UsignBox.Text  = user.Usign;

            this.Loaded += async delegate(object senderD, RoutedEventArgs eD)
            {
                System.Drawing.Bitmap bitmap = await user.GetPicAsync();

                ImageBox.Source = BiliApi.BitmapToImageSource(bitmap);
            };
        }