Exemple #1
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);


            offer = (OfferDtoIn)(((object[])(e.Parameter))[0]);
            bid   = (BidDtoIn)(((object[])(e.Parameter))[1]);

            await offer.BuildImage();

            OfferImg.Source = offer.Image;

            ObservableCollection <Toy> dataListOffer = new ObservableCollection <Toy>();

            offer.Toys.ForEach(async(Toy toy) => {
                await toy.BuildImage();
                dataListOffer.Add(toy);
            });

            OfferCaptionTb.Text       = offer.Caption;
            OfferDescriptionTb.Text   = offer.Description;
            OfferUserTb.Text          = offer.NameOfPerson;
            OfferToysList.ItemsSource = dataListOffer;

            await bid.BuildImage();

            BidImg.Source = bid.Image;

            ObservableCollection <Toy> dataListBid = new ObservableCollection <Toy>();

            bid.Toys.ForEach(async(Toy toy) => {
                await toy.BuildImage();
                dataListBid.Add(toy);
            });

            BidCaptionTb.Text       = bid.Caption;
            BidDescriptionTb.Text   = bid.Description;
            BidUserTb.Text          = bid.NameOfPerson;
            BidToysList.ItemsSource = dataListBid;
        }
Exemple #2
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            username = (string)(((object[])(e.Parameter))[0]);
            bid      = (BidDtoIn)(((object[])(e.Parameter))[1]);

            await bid.BuildImage();

            Image.Source = bid.Image;

            ObservableCollection <Toy> dataList = new ObservableCollection <Toy>();

            bid.Toys.ForEach(async(Toy toy) => {
                await toy.BuildImage();
                dataList.Add(toy);
            });

            CaptionTb.Text       = bid.Caption;
            DescriptionTb.Text   = bid.Description;
            UserTb.Text          = bid.NameOfPerson;
            toysList.ItemsSource = dataList;
        }