Example #1
0
        private async void Item_Selected(object sender, SelectedItemChangedEventArgs e)
        {
            var funcionSeleccionada = e.SelectedItem as Funcion;

            if (CantidadBoletas.Text == null)
            {
                DisplayAlert("ERROR", "Digite Cantidad de Boletas", "OK");
                return;
            }
            int boletas      = Convert.ToInt32(CantidadBoletas.Text);
            int BoletasTotal = boletas * funcionSeleccionada.Precio;

            ResumenCompra resumencompra = new ResumenCompra();

            resumencompra.funcion  = funcionSeleccionada;
            resumencompra.pelicula = peliculaElegida;
            resumencompra.Cantidad = boletas;
            resumencompra.Total    = BoletasTotal;

            await Navigation.PushAsync(new ResumenComprasPage(resumencompra));
        }
Example #2
0
        private async void Item_Selected(object sender, SelectedItemChangedEventArgs e)
        {
            Funcion funcionElegida = e.SelectedItem as Funcion;

            if (boletaEntry.Text == null)
            {
                DisplayAlert("ERROR", "Digite Cantidad de Boletas", "OK");
                return;
            }
            int boletas = Convert.ToInt32(boletaEntry.Text);

            ResumenCompra rc = new ResumenCompra();

            rc.funcion  = funcionElegida;
            rc.pelicula = peliculaSeleccionada;
            rc.cantidad = boletas;
            rc.total    = funcionElegida.Precio * boletas;



            await Navigation.PushAsync(new ResumenCompraPage(rc));
        }
 public ResumenCompraPage(ResumenCompra resumenCompra)
 {
     InitializeComponent();
     BindingContext = resumenCompra;
 }