Ejemplo n.º 1
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();
            model.Init();

            if (CartService.Cart.Count > 0)
            {
                listaKorpa.IsVisible  = true;
                ukupno.IsVisible      = true;
                praznaKorpa.IsVisible = false;
            }
        }
        protected override async void OnAppearing()
        {
            base.OnAppearing();
            await model.Init();

            decimal iznos = 0;

            if (CartService.Cart.Count > 0)
            {
                zakljuciButton.IsVisible = true;
                otkaziButton.IsVisible   = true;

                foreach (var item in model.NarudzbaList)
                {
                    iznos += item.Knjiga.Cijena * item.Kolicina;
                }

                iznosLabel.Text = "Ukupan iznos: " + Math.Round(iznos, 2) + " KM";
            }
        }
 protected override void OnAppearing()
 {
     base.OnAppearing();
     model.Init();
 }
Ejemplo n.º 4
0
 protected async override void OnAppearing()
 {
     base.OnAppearing();
     await model.Init(_id);
 }