private void listNarudzbe_ItemClick(object sender, ItemClickEventArgs e)
        {
            Narudzbe            n        = (Narudzbe)e.ClickedItem;
            HttpResponseMessage response = narudzbeService.GetActionResponse("SelectStavke", (n.NarudzbaID));

            if (response.IsSuccessStatusCode)
            {
                n.NarudzbaStavkes = response.Content.ReadAsAsync <List <NarudzbaStavke> >().Result;
                Frame.Navigate(typeof(DetaljiNarudzbe), n);
            }
        }
예제 #2
0
 /// <summary>
 /// Invoked when this page is about to be displayed in a Frame.
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.
 /// This parameter is typically used to configure the page.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     narudzba = e.Parameter as Narudzbe;
     BindStavke();
     if (narudzba.Otkazano)
     {
         btnOtkazi.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
     }
     if (!narudzba.Status)
     {
         btnOtkazi.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
     }
 }