Пример #1
0
        private void offersList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            BidDtoIn   bid   = (BidDtoIn)offersList.SelectedItem;
            OfferDtoIn offer = Query.GetOffer(bid.OfferId);

            this.Frame.Navigate(typeof(MyBidDetail), new Object[] { offer, bid });
        }
Пример #2
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;
        }
Пример #3
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;
        }
Пример #4
0
        private void bidsList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            BidDtoIn dto = ((BidDtoIn)bidsList.SelectedItem);

            this.Frame.Navigate(typeof(BidDetail), new object[] { username, dto });
        }