Exemplo n.º 1
0
        private async void listview1_ItemClick(object sender, ItemClickEventArgs e)
        {
            var use = (ListviewSelect)e.ClickedItem;

            nameid.Text   = use.Userid;
            number.Text   = use.Phonenumber;
            birthday.Text = use.Bir;
            mail1.Text    = use.Mail;
            city1.Text    = use.City;

            ImageBrush imgBrush = new ImageBrush();
            var        a        = use.Coveimage;

            imgBrush.ImageSource = new BitmapImage(new Uri(a));
            ellips.Fill          = imgBrush;
            try
            {
                Root MyCitynum = await GetCitynum.GetOperator(use.Phonenumber);

                cityphone.Text = MyCitynum.province + "  " + MyCitynum.city + "  " + MyCitynum.@operator;
            }
            catch { cityphone.Text = "归属地获取失败!"; }
            //Uri uri = new Uri("ms-appx:///Assets/pikaqiu.png");
            //BitmapImage bitmap = new BitmapImage(uri);
        }
Exemplo n.º 2
0
        private async void selectbox_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
        {
            Root getoperator = await GetCitynum.GetOperator(args.QueryText);

            province.Text = getoperator.province;
            city.Text     = getoperator.city;
            Operator.Text = getoperator.@operator;
            areaCode.Text = getoperator.areaCode;
            zip.Text      = getoperator.zip;
            ip.Text       = getoperator.ip;
        }